Apache CXF API

org.apache.cxf.jaxrs.ext.search
Class AbstractSearchConditionParser<T>

java.lang.Object
  extended by org.apache.cxf.jaxrs.ext.search.AbstractSearchConditionParser<T>
All Implemented Interfaces:
SearchConditionParser<T>
Direct Known Subclasses:
FiqlParser, ODataParser

public abstract class AbstractSearchConditionParser<T>
extends Object
implements SearchConditionParser<T>


Field Summary
protected  Map<String,String> beanPropertiesMap
           
protected  Beanspector<T> beanspector
           
protected  Class<T> conditionClass
           
protected  Map<String,String> contextProperties
           
 
Constructor Summary
protected AbstractSearchConditionParser(Class<T> tclass)
           
protected AbstractSearchConditionParser(Class<T> tclass, Map<String,String> contextProperties, Map<String,String> beanProperties)
           
 
Method Summary
protected  String getActualSetterName(String setter)
           
protected  String getSetter(String setter)
           
protected  Beanspector.TypeInfo getTypeInfo(String setter, String value)
           
protected  boolean isCount(String propName)
           
protected  Object parseType(String originalPropName, Object ownerBean, Object lastCastedValue, String setter, Beanspector.TypeInfo typeInfo, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.jaxrs.ext.search.SearchConditionParser
parse
 

Field Detail

contextProperties

protected final Map<String,String> contextProperties

conditionClass

protected final Class<T> conditionClass

beanspector

protected Beanspector<T> beanspector

beanPropertiesMap

protected Map<String,String> beanPropertiesMap
Constructor Detail

AbstractSearchConditionParser

protected AbstractSearchConditionParser(Class<T> tclass)

AbstractSearchConditionParser

protected AbstractSearchConditionParser(Class<T> tclass,
                                        Map<String,String> contextProperties,
                                        Map<String,String> beanProperties)
Method Detail

getActualSetterName

protected String getActualSetterName(String setter)

getTypeInfo

protected Beanspector.TypeInfo getTypeInfo(String setter,
                                           String value)
                                    throws SearchParseException,
                                           PropertyNotFoundException
Throws:
SearchParseException
PropertyNotFoundException

getSetter

protected String getSetter(String setter)

parseType

protected Object parseType(String originalPropName,
                           Object ownerBean,
                           Object lastCastedValue,
                           String setter,
                           Beanspector.TypeInfo typeInfo,
                           String value)
                    throws SearchParseException
Throws:
SearchParseException

isCount

protected boolean isCount(String propName)

Apache CXF API

Apache CXF