|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.jaxrs.ext.search.fiql.FiqlParser<T>
T - type of search condition.public class FiqlParser<T>
Parses FIQL expression to
construct SearchCondition structure. Since this class operates on Java type T, not on XML
structures "selectors" part of specification is not applicable; instead selectors describes getters of type
T used as search condition type (see SimpleSearchCondition.isMet(Object) for details.
| Field Summary | |
|---|---|
static String |
AND
|
static Map<ConditionType,String> |
CONDITION_MAP
|
static String |
EQ
|
static String |
EXTENSION_COUNT
|
static String |
GE
|
static String |
GT
|
static String |
LE
|
static String |
LT
|
static String |
NEQ
|
static String |
OR
|
| Constructor Summary | |
|---|---|
FiqlParser(Class<T> tclass)
Creates FIQL parser. |
|
FiqlParser(Class<T> tclass,
Map<String,String> contextProperties)
Creates FIQL parser. |
|
FiqlParser(Class<T> tclass,
Map<String,String> contextProperties,
Map<String,String> beanProperties)
Creates FIQL parser. |
|
| Method Summary | |
|---|---|
SearchCondition<T> |
parse(String fiqlExpression)
Parses expression and builds search filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String OR
public static final String AND
public static final String GT
public static final String GE
public static final String LT
public static final String LE
public static final String EQ
public static final String NEQ
public static final Map<ConditionType,String> CONDITION_MAP
public static final String EXTENSION_COUNT
| Constructor Detail |
|---|
public FiqlParser(Class<T> tclass)
tclass - - class of T used to create condition objects in built syntax tree. Class T must have
accessible no-arg constructor and complementary setters to these used in FIQL expressions.
public FiqlParser(Class<T> tclass,
Map<String,String> contextProperties)
tclass - - class of T used to create condition objects in built syntax tree. Class T must have
accessible no-arg constructor and complementary setters to these used in FIQL expressions.contextProperties -
public FiqlParser(Class<T> tclass,
Map<String,String> contextProperties,
Map<String,String> beanProperties)
tclass - - class of T used to create condition objects in built syntax tree. Class T must have
accessible no-arg constructor and complementary setters to these used in FIQL expressions.contextProperties - | Method Detail |
|---|
public SearchCondition<T> parse(String fiqlExpression)
throws SearchParseException
Example:
class Condition {
public String getFoo() {...}
public void setFoo(String foo) {...}
public int getBar() {...}
public void setBar(int bar) {...}
}
FiqlParser<Condition> parser = new FiqlParser<Condition>(Condition.class);
parser.parse("foo==mystery*;bar=ge=10");
parse in interface SearchConditionParser<T>fiqlExpression - expression of filter.
SearchCondition objects representing runtime search structure.
SearchParseException - when expression does not follow FIQL grammar
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||