Package com.im.df.api.dml
Class Operators.AfterOperator
- java.lang.Object
-
- com.im.df.api.dml.DFOperator
-
- com.im.df.api.dml.Operators.SimpleFieldValuesOperator
-
- com.im.df.api.dml.Operators.AfterOperator
-
- Enclosing class:
- Operators
public static final class Operators.AfterOperator extends Operators.SimpleFieldValuesOperator
Used in date fields instead ofOperators.GREATER_THAN
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getStartingWithOperator(java.lang.String text)
Calculates whether the input string is starting with the operator's String representation.-
Methods inherited from class com.im.df.api.dml.Operators.SimpleFieldValuesOperator
getValidFormatMsg, isEmptyStringAllowed, isFieldAcceptableAsOperand, parseOperands, validate
-
Methods inherited from class com.im.df.api.dml.DFOperator
correctNumberOfOperands, getDisplayName, getDisplayNameInExpression, getMaxOperands, getMinOperands, getPersistName, getStartingWith, getToStringPart, toString, toString
-
-
-
-
Method Detail
-
getStartingWithOperator
public int getStartingWithOperator(java.lang.String text)
Description copied from class:DFOperator
Calculates whether the input string is starting with the operator's String representation. If no, returns 0, if yes returns the position where the operator ends in the input text.
By overriding this method you can define aliases for operator.
To properly override this method you should callDFOperator.getStartingWith(java.lang.String, java.lang.String)
for aliases and return the result if it is not 0. Return 0 if no alias returns number larger than 0.
The method uses case insensitive strings.- Overrides:
getStartingWithOperator
in classDFOperator
- Parameters:
text
- input string to test.- Returns:
- 0 when the input is not starting with operator, otherwise the position, where the operator ends.
-
-