public class ItemFormatConstraint extends BaseConstraint
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALL
All types of items
|
static java.lang.String |
CLASS_VERSION |
static java.lang.String |
HTML
Simple HTML of any style
|
static java.lang.String |
OTHER
Any other format
|
static java.lang.String |
PDF
PDF Format
|
static java.lang.String |
TAG |
static java.lang.String |
TEXT
Raw Text Format
|
static java.lang.String |
XHTML
w3.org XML schema for HTML
|
Constructor and Description |
---|
ItemFormatConstraint() |
Modifier and Type | Method and Description |
---|---|
protected DocumentSetConstraint |
createFromParser(atg.search.routing.utils.SearchMessageNode pXml) |
boolean |
equals(java.lang.Object pObject) |
protected void |
getAttributeXML(java.lang.StringBuilder sb) |
protected void |
getBodyXML(java.lang.StringBuilder sb) |
java.lang.String |
getRequestTag() |
static java.lang.String |
getTag() |
java.lang.String |
getType()
Returns the type
|
java.lang.Float |
getWeight()
Returns the weight
|
int |
hashCode() |
void |
setType(java.lang.String pType)
Sets the item format type
|
void |
setWeight(java.lang.Float pWeight)
Sets the weight of the constraint
|
static ItemFormatConstraint |
valueOf(java.lang.String pXml)
Converts constraint xml into a new constraint instance
|
getXml, setXml
createFromXML, getParser, getPropConstraints
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toString, toXML, toXML
public static final java.lang.String CLASS_VERSION
public static final java.lang.String HTML
public static final java.lang.String TEXT
public static final java.lang.String PDF
public static final java.lang.String XHTML
public static final java.lang.String OTHER
public static final java.lang.String ALL
public static final java.lang.String TAG
public static java.lang.String getTag()
public boolean equals(java.lang.Object pObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getType()
public void setType(java.lang.String pType)
public java.lang.Float getWeight()
public void setWeight(java.lang.Float pWeight)
pWeight
- weightprotected void getBodyXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getBodyXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
protected void getAttributeXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getAttributeXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
public static ItemFormatConstraint valueOf(java.lang.String pXml)
pXml
- item format constraint xmlprotected DocumentSetConstraint createFromParser(atg.search.routing.utils.SearchMessageNode pXml)
createFromParser
in class DocumentSetConstraint
public java.lang.String getRequestTag()
getRequestTag
in class atg.search.routing.command.SearchXMLObject