public class BasicPredicate extends java.lang.Object implements Predicate
Constructor and Description |
---|
BasicPredicate(java.lang.String propertyName,
Operation operation,
java.lang.Object value,
java.lang.Class<? extends RegistryBean> beanClass)
Crates a BasicPredicate instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends RegistryBean> |
getBeanClass()
Gets the bean class type.
|
Operation |
getOperation()
Gets the operation applied on the predicate.
|
java.lang.String |
getPropertyName()
Gets the property name.
|
java.lang.String |
getQueryString(SearchQuery searchQuery)
Does nothing, this predicate does not have enough information to create a
query string
|
java.lang.Object |
getValue()
Gets the predicate value.
|
public BasicPredicate(java.lang.String propertyName, Operation operation, java.lang.Object value, java.lang.Class<? extends RegistryBean> beanClass)
propertyName
- The property name as a stringoperation
- The Operation
for the predicatevalue
- The value for the predicatebeanClass
- The bean Class
typepublic java.lang.String getPropertyName()
public java.lang.Object getValue()
public Operation getOperation()
Operation
applied on the predicatepublic java.lang.Class<? extends RegistryBean> getBeanClass()
Class
public java.lang.String getQueryString(SearchQuery searchQuery) throws CSAppFrameworkException
getQueryString
in interface Predicate
searchQuery
- The SearchQuery
objectCSAppFrameworkException
- If an error occurs while obtaining the query string