atg.search.routing.command.search
Class BaseConstraint

java.lang.Object
  extended by atg.search.routing.command.search.DocumentSetConstraint
      extended by atg.search.routing.command.search.BaseConstraint
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CollectionConstraint, ConstraintsGroup, DateConstraint, FileExtensionConstraint, ItemFormatConstraint, KeywordConstraint, LanguageConstraint, NumericConstraint, PropConstraint, SetConstraint, StringConstraint, URLConstraint, XmlDocumentSetConstraint

public abstract class BaseConstraint
extends DocumentSetConstraint

Base class for creating different type of constraint implementations.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
protected BaseConstraint()
           
 
Method Summary
 java.lang.String getXml()
          Returns complete XML, if provided through ConstraintsGroup.
 void setXml(java.lang.String pXml)
          Overrides subclasses setter methods by allowing complete XML to be passed in.
 
Methods inherited from class atg.search.routing.command.search.DocumentSetConstraint
createFromParser, createFromXML, equals, escapeToXml, getParser, getPropConstraints, toString, toXml, valueOf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

BaseConstraint

protected BaseConstraint()
Method Detail

setXml

public void setXml(java.lang.String pXml)
Description copied from class: DocumentSetConstraint
Overrides subclasses setter methods by allowing complete XML to be passed in. You must use ConstraintsGroup for this. No other constraint subclass will use the xml. The XML must be perfect. If you do not know the correct format for the XML, then this method is not for you.

Specified by:
setXml in class DocumentSetConstraint
Parameters:
pXml - complete xml

getXml

public java.lang.String getXml()
Description copied from class: DocumentSetConstraint
Returns complete XML, if provided through ConstraintsGroup.

Specified by:
getXml in class DocumentSetConstraint
Returns:
Complete XML, if provided through ConstraintsGroup.