|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.primus.searchcommon.constraint.BaseConstraint com.primus.searchcommon.constraint.ItemFormatConstraint
public class ItemFormatConstraint
Used to constraint the result based on the indexed item type. Use the constants defined in this class.
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 |
TEXT
Raw Text Format |
static java.lang.String |
XHTML
w3.org XML schema for HTML |
Constructor Summary | |
---|---|
ItemFormatConstraint(java.lang.String pType)
|
|
ItemFormatConstraint(java.lang.String pType,
java.lang.Float pWeight)
|
Method Summary | |
---|---|
java.lang.String |
toXml()
Converts this constraint to the XML representation that can be sent in the ES Query. |
Methods inherited from class com.primus.searchcommon.constraint.BaseConstraint |
---|
escapeToXml, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, 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
Constructor Detail |
---|
public ItemFormatConstraint(java.lang.String pType)
pType
- The item type to constraint for. Use the constants defined in this class.public ItemFormatConstraint(java.lang.String pType, java.lang.Float pWeight)
pType
- The item type to constraint for. Use the constants defined in this class.pWeight
- weightMethod Detail |
---|
public java.lang.String toXml()
DocumentSetConstraint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |