Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.util.paramParser
Class IntervalParser

java.lang.Object
  extended by org.hyperic.util.paramParser.IntervalParser
All Implemented Interfaces:
FormatParser

public class IntervalParser
extends java.lang.Object
implements FormatParser

Parses an interval of the form "#[d|h|m|s]" getValue() returns the milliseconds of the duration


Constructor Summary
IntervalParser()
           
 
Method Summary
 long getValue()
           
 void parseValue(java.lang.String arg)
          Called when the parser finds a parameter fitting the class implementing this interface (as in #IntegerParser)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntervalParser

public IntervalParser()
Method Detail

parseValue

public void parseValue(java.lang.String arg)
                throws ParseException
Description copied from interface: FormatParser
Called when the parser finds a parameter fitting the class implementing this interface (as in #IntegerParser)

Specified by:
parseValue in interface FormatParser
Throws:
ParseException

getValue

public long getValue()

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.