|
|||||||||
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.ConstraintsGroup
public class ConstraintsGroup
Represents multiple DocumentSetConstraint or ConstraintGroup instances with an operation definition. This is used to define compositions of multiple constraints.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
ConstraintsGroup()
|
Method Summary | |
---|---|
ConstraintsGroup |
add(DocumentSetConstraint pConstraint)
Adds a constraint to the list of constraints, and returns this. |
protected ConstraintsGroup |
createFromParser(atg.search.routing.utils.FastXMLModel pXml,
int rootIdx)
|
DocumentSetConstraint[] |
getConstraints()
Returns the constraints as an array |
DocumentSetConstraint |
getConstraints(int pIndex)
Indexed getter for constraints |
java.lang.String |
getName()
Returns the name of the operation, only used for the root operation |
BooleanExpressionType |
getOperation()
Returns the operation for the constraint group |
java.util.List<PropConstraint> |
getPropConstraints()
Helper method that returns PropConstraints only |
void |
setConstraints(DocumentSetConstraint[] pConstraints)
Sets the list of constraints from an array |
void |
setConstraints(int pIndex,
DocumentSetConstraint pConstraint)
Sets the constraint at the provided index; if the list of constraints is not big enough, it is enlarged with null constraints in the intervening slots. |
void |
setName(java.lang.String pName)
Sets the name of the operation. |
void |
setOperation(BooleanExpressionType pOperation)
|
java.lang.String |
toXml()
Returns the constraint xml |
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, toString, valueOf |
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
Constructor Detail |
---|
public ConstraintsGroup()
Method Detail |
---|
public java.util.List<PropConstraint> getPropConstraints()
getPropConstraints
in class DocumentSetConstraint
PropConstraint
s, possibly empty but never nullpublic void setOperation(BooleanExpressionType pOperation)
pOperation
- the operation for the constraint grouppublic BooleanExpressionType getOperation()
public java.lang.String getName()
public void setName(java.lang.String pName)
pName
- a name for the operationpublic ConstraintsGroup add(DocumentSetConstraint pConstraint)
pConstraint
-
public void setConstraints(DocumentSetConstraint[] pConstraints)
pConstraints
- Array of DocumentSetConstraint
public void setConstraints(int pIndex, DocumentSetConstraint pConstraint)
pIndex
- index for the constraintpConstraint
- the constraintpublic DocumentSetConstraint getConstraints(int pIndex)
pIndex
-
public DocumentSetConstraint[] getConstraints()
DocumentSetConstraint
public java.lang.String toXml()
toXml
in class DocumentSetConstraint
protected ConstraintsGroup 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 |