...
Note |
---|
Each subclass implementation of the Symbol interface should have some public static method that allows the creation of an Object in that class from a string parameter. |
...
ConjunctionSymbol
An enum that represents the possible conjunction symbols.
Code Block |
---|
enum ConjunctionConjunctionSymbol implements Symbol { AND, OR; } |
...
KeySymbol
A symbol that represents a "key" in a Criteria.
Code Block |
---|
class KeyKeySymbol implements Symbol { public String getKey(); } |
...
OperatorSymbol
A symbol that represents an "operator" in a Criteria.
Code Block |
---|
class OperatorSymbol implements Symbol {
public Operator getOperator();
} |
ValueSymbol
A symbol that represents a "value" in a Criteria.
Code Block |
---|
class ValueValueSymbol implements Symbol { // When the State creates this symbol it must convert the object to a TObject so that it can be passed over the wire via Thrift public TObject getValue(); } |
...
ParenthesisSymbol (only defined on the server)
A symbol that represents a parenthesis in a Criteria. Note that the builder doesn't actually need to use these since Criteria objects are embedded to signify groups.
Code Block |
---|
enum ParenthesisParenthesisSymbol implements Symbol { LEFT, RIGHT; } |
...