public class ConstraintsGroup extends BaseConstraint
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
| Constructor and Description |
|---|
ConstraintsGroup() |
ConstraintsGroup(java.util.Collection<DocumentSetConstraint> pConstraints)
Create a constraints group specifying the constraints list.
|
ConstraintsGroup(java.util.Collection<DocumentSetConstraint> pConstraints,
BooleanExpressionType pOperation)
Create a constraints group specifying the operation and
constraints list.
|
ConstraintsGroup(DocumentSetConstraint[] pConstraints)
Create a constraints group specifying a constraints array.
|
ConstraintsGroup(DocumentSetConstraint[] pConstraints,
BooleanExpressionType pOperation)
Create a constraints group specifying the operation and
constraints array.
|
| Modifier and Type | Method and Description |
|---|---|
ConstraintsGroup |
add(DocumentSetConstraint pConstraint)
Adds a constraint to the list of constraints, and returns this.
|
protected ConstraintsGroup |
createFromParser(atg.search.routing.utils.SearchMessageNode pRoot) |
boolean |
equals(java.lang.Object pObject)
compares this with another by an XML comparison
Note that this will generate full xml.
|
protected void |
getAttributeXML(java.lang.StringBuilder sb) |
protected void |
getBodyXML(java.lang.StringBuilder sb) |
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
|
java.lang.String |
getRequestTag() |
int |
hashCode() |
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() |
getXml, setXmlcreateFromXML, getParser, valueOfappendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toString, toXML, toXMLpublic static final java.lang.String CLASS_VERSION
public ConstraintsGroup()
public ConstraintsGroup(java.util.Collection<DocumentSetConstraint> pConstraints)
pConstraints - a collection of constraints, possibly nullpublic ConstraintsGroup(java.util.Collection<DocumentSetConstraint> pConstraints, BooleanExpressionType pOperation)
pOperation - The operation typepConstraints - a collection of constraints, possibly nullpublic ConstraintsGroup(DocumentSetConstraint[] pConstraints)
pConstraints - an array of constraints, possibly nullpublic ConstraintsGroup(DocumentSetConstraint[] pConstraints, BooleanExpressionType pOperation)
pOperation - The operation typepConstraints - an array of constraints, possibly nullpublic boolean equals(java.lang.Object pObject)
equals in class java.lang.ObjectpObject - another DocumentSetConstraintpublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.List<PropConstraint> getPropConstraints()
getPropConstraints in class DocumentSetConstraintPropConstraints, possibly empty but never nullpublic java.lang.String toXml()
public 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 DocumentSetConstraintpublic void setConstraints(int pIndex,
DocumentSetConstraint pConstraint)
pIndex - index for the constraintpConstraint - the constraintpublic DocumentSetConstraint getConstraints(int pIndex)
pIndex - public DocumentSetConstraint[] getConstraints()
DocumentSetConstraintprotected void getAttributeXML(java.lang.StringBuilder sb)
throws atg.search.routing.command.IncompleteCommandException
getAttributeXML in class atg.search.routing.command.SearchXMLObjectatg.search.routing.command.IncompleteCommandExceptionprotected void getBodyXML(java.lang.StringBuilder sb)
throws atg.search.routing.command.IncompleteCommandException
getBodyXML in class atg.search.routing.command.SearchXMLObjectatg.search.routing.command.IncompleteCommandExceptionprotected ConstraintsGroup createFromParser(atg.search.routing.utils.SearchMessageNode pRoot)
createFromParser in class DocumentSetConstraintpublic java.lang.String getRequestTag()
getRequestTag in class atg.search.routing.command.SearchXMLObject