org.activemath.webapp.dict.queries
Class AMAbstractQuery
java.lang.Object
org.activemath.webapp.dict.queries.AMAbstractQuery
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- AMMetadataAttributeQuery, AMQueryList, IdAMQuery, OmobjAMQuery, TextAMQuery
public abstract class AMAbstractQuery
- extends Object
- implements Cloneable
A class to describe a search-query as entered (and edited)
by a appSession in the ActiveMath search function.
The idea on the back of such a query is, simply, a boolean-query
modelling a list of queries of various types all being ORed or ANDed.
policy
protected SearchPolicy policy
AMAbstractQuery
public AMAbstractQuery()
AMAbstractQuery
public AMAbstractQuery(String name)
getName
public String getName()
setPolicy
public void setPolicy(SearchPolicy policy)
isValid
public abstract boolean isValid()
getType
public abstract String getType()
setType
public void setType()
- Ignored called, this should be treated earlier
as an object cannot change its class by itself.
This method is, however, needed by BeanUtils.
getDefaultFieldName
public abstract String getDefaultFieldName()
- Returns the bean field-name that a appSession should "first" edit when editing such a query.
userString
public abstract String userString()
clone
protected Object clone()
- Overrides:
clone in class Object
asXMLElement
public OJElement asXMLElement()