public class BasicCompositeConstraint extends BasicConstraint implements CompositeConstraint, Serializable
modifiableLOGICAL_AND, LOGICAL_OPERATOR_DESCRIPTIONS, LOGICAL_OR| Constructor and Description |
|---|
BasicCompositeConstraint(int logicalOperator,
Constraint... childs)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BasicCompositeConstraint |
addChild(Constraint child)
Adds new child constraint.
|
boolean |
equals(Object obj)
Compares this constraint to the specified object.
|
int |
getBasicSupportLevel()
Tests if this constraint is supported by the basic queryhandler.
|
List<Constraint> |
getChilds()
Gets the child constraints.
|
int |
getLogicalOperator()
Gets the logical operator used to combine the child constraints.
|
String |
getLogicalOperatorDescription()
Returns a description of the logical operator
|
int |
hashCode() |
BasicCompositeConstraint |
removeChild(Constraint child) |
void |
setUnmodifiable() |
String |
toString()
Returns a string representation of this CompositeConstraint.
|
isInverse, setInverseclone, finalize, getClass, notify, notifyAll, wait, wait, waitisInversepublic BasicCompositeConstraint(int logicalOperator,
Constraint... childs)
logicalOperator - The logical operator.IllegalArgumentException - when an invalid argument is supplied.public void setUnmodifiable()
setUnmodifiable in interface ConstraintsetUnmodifiable in class BasicConstraintpublic BasicCompositeConstraint addChild(Constraint child)
child - The child constraint.BasicCompositeConstraint instance.IllegalArgumentException - when an invalid argument is supplied.public BasicCompositeConstraint removeChild(Constraint child)
public List<Constraint> getChilds()
CompositeConstraintgetChilds in interface CompositeConstraintpublic int getLogicalOperator()
CompositeConstraintgetLogicalOperator in interface CompositeConstraintpublic String getLogicalOperatorDescription()
public int getBasicSupportLevel()
ConstraintgetBasicSupportLevel in interface ConstraintgetBasicSupportLevel in class BasicConstraintpublic boolean equals(Object obj)
Constrainttrue if and only if the argument is a non-null
Constraint object representing the same constraint(s).equals in interface CompositeConstraintequals in interface Constraintequals in class BasicConstraintobj - The object to compare with.true if the objects are equal,
false otherwise.public int hashCode()
hashCode in interface CompositeConstrainthashCode in interface ConstrainthashCode in class BasicConstraintpublic String toString()
CompositeConstraintisInverse()
getLogicalOperator()
getChilds()
toString in interface CompositeConstrainttoString in class ObjectMMBase 1.9-SNAPSHOT - ${javadoctimestamp}