org.drools.base.evaluators
Class TimeIntervalParser
java.lang.Object
org.drools.base.evaluators.TimeIntervalParser
- All Implemented Interfaces:
- EvaluatorParametersParser
public class TimeIntervalParser
- extends Object
- implements EvaluatorParametersParser
A parameters parser that uses JodaTime for time units parsing.
Method Summary |
Long[] |
parse(String paramText)
Parses the given paramText and return an array
of objects where each position in the array corresponds
to the appropriate parameter in the parameter string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeIntervalParser
public TimeIntervalParser()
parse
public Long[] parse(String paramText)
- Description copied from interface:
EvaluatorParametersParser
- Parses the given paramText and return an array
of objects where each position in the array corresponds
to the appropriate parameter in the parameter string.
- Specified by:
parse
in interface EvaluatorParametersParser
- Parameters:
paramText
- the string of parameters
- Returns:
- the array of objects corresponding to each parameter
- See Also:
EvaluatorParametersParser.parse(java.lang.String)
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.