|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object 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 ItemFormatConstraint |
createFromParser(atg.search.routing.utils.FastXMLModel pXml,
int rootIdx)
|
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 |
java.lang.String |
toXml()
Converts this constraint to the XML representation that can be sent in request. |
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, equals, escapeToXml, getParser, getPropConstraints, toString |
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 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
- weightpublic java.lang.String toXml()
DocumentSetConstraint
toXml
in class DocumentSetConstraint
public static ItemFormatConstraint valueOf(java.lang.String pXml)
pXml
- item format constraint xml
protected ItemFormatConstraint createFromParser(atg.search.routing.utils.FastXMLModel pXml, int rootIdx)
createFromParser
in class DocumentSetConstraint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |