|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRelationalOperandFactory
This interface allows to control the relational operands used in the parser
There are two sets of filter operands: logical operators, used to compose complex filters, and relational operators, used to define basic filter expressions.
By construction, the logical operators are built in in the FilterTextParser, which
relies on this factory to provide information for the relational ones
| Method Summary | |
|---|---|
IRelationalOperand |
getDefaultOperand(Class<?> c,
boolean nullOp,
boolean rightId)
Returns the default operand to apply on a given class |
IRelationalOperand |
getOperand(char c,
String all,
int index)
Returns the operand that exists at the beginning of the substring all[index:] |
void |
setComparator(Class<?> c,
Comparator<?> cmp)
Defines a comparator for a given class. |
void |
setIgnoreCase(boolean ignore)
Defines whether the created operand should be case insensitive. |
| Method Detail |
|---|
IRelationalOperand getOperand(char c, String all, int index)
c - the character at all[index]all - the whole stringindex - the position to start parsing
IRelationalOperand getDefaultOperand(Class<?> c, boolean nullOp, boolean rightId)
c - the type's classnullOp - true if the value to be associated to the operand is the null instance.rightId - true if the comparison is against a second identifiervoid setComparator(Class<?> c, Comparator<?> cmp)
void setIgnoreCase(boolean ignore)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||