|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.search.routing.command.SearchXMLObject atg.search.routing.command.search.DocumentSetConstraint atg.search.routing.command.search.BaseConstraint atg.search.routing.command.search.ItemFormatConstraint
public class ItemFormatConstraint
Used to constraint the result based on the indexed item type.
Field Summary | |
---|---|
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 Summary | |
---|---|
ItemFormatConstraint()
|
Method Summary | |
---|---|
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 |
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 |
Methods inherited from class atg.search.routing.command.search.BaseConstraint |
---|
getXml, setXml |
Methods inherited from class atg.search.routing.command.search.DocumentSetConstraint |
---|
createFromXML, getParser, getPropConstraints |
Methods inherited from class atg.search.routing.command.SearchXMLObject |
---|
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toString, toXML, toXML |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ItemFormatConstraint()
Method Detail |
---|
public static java.lang.String getTag()
public boolean equals(java.lang.Object pObject)
equals
in class java.lang.Object
public java.lang.String getType()
public void setType(java.lang.String pType)
pType
- item format typeHTML
,
TEXT
,
PDF
,
XHTML
,
OTHER
,
ALL
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 xml
protected 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |