org.activemath.webapp.dict.queries
Class AMAbstractQuery

java.lang.Object
  extended by 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.


Field Summary
protected  SearchPolicy policy
           
 
Constructor Summary
AMAbstractQuery()
           
AMAbstractQuery(String name)
           
 
Method Summary
 OJElement asXMLElement()
           
protected  Object clone()
           
abstract  String getDefaultFieldName()
          Returns the bean field-name that a appSession should "first" edit when editing such a query.
 String getName()
           
abstract  String getType()
           
abstract  boolean isValid()
           
 void setPolicy(SearchPolicy policy)
           
 void setType()
          Ignored called, this should be treated earlier as an object cannot change its class by itself.
abstract  String userString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

policy

protected SearchPolicy policy
Constructor Detail

AMAbstractQuery

public AMAbstractQuery()

AMAbstractQuery

public AMAbstractQuery(String name)
Method Detail

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()