Apache CXF API

org.apache.cxf.jaxrs.ext.search.odata
Class ODataParser<T>

java.lang.Object
  extended by org.apache.cxf.jaxrs.ext.search.AbstractSearchConditionParser<T>
      extended by org.apache.cxf.jaxrs.ext.search.odata.ODataParser<T>
All Implemented Interfaces:
SearchConditionParser<T>

public class ODataParser<T>
extends AbstractSearchConditionParser<T>


Field Summary
 
Fields inherited from class org.apache.cxf.jaxrs.ext.search.AbstractSearchConditionParser
beanPropertiesMap, beanspector, conditionClass, contextProperties
 
Constructor Summary
ODataParser(Class<T> conditionClass)
          Creates OData parser.
ODataParser(Class<T> tclass, Map<String,String> contextProperties)
          Creates OData parser.
ODataParser(Class<T> tclass, Map<String,String> contextProperties, Map<String,String> beanProperties)
          Creates OData parser.
 
Method Summary
 SearchCondition<T> parse(String searchExpression)
           
 
Methods inherited from class org.apache.cxf.jaxrs.ext.search.AbstractSearchConditionParser
getActualSetterName, getSetter, getTypeInfo, isCount, parseType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ODataParser

public ODataParser(Class<T> conditionClass)
Creates OData parser.

Parameters:
conditionClass - - class of T used to create condition objects. Class T must have accessible no-arguments constructor and complementary setters to these used in OData $filter expressions.

ODataParser

public ODataParser(Class<T> tclass,
                   Map<String,String> contextProperties)
Creates OData parser.

Parameters:
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 OData $filter expressions.
contextProperties -

ODataParser

public ODataParser(Class<T> tclass,
                   Map<String,String> contextProperties,
                   Map<String,String> beanProperties)
Creates OData parser.

Parameters:
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 OData $filter expressions.
contextProperties -
Method Detail

parse

public SearchCondition<T> parse(String searchExpression)
                         throws SearchParseException
Throws:
SearchParseException

Apache CXF API

Apache CXF