|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.nds.dirxml.driver.xds.Constraint
com.novell.nds.dirxml.driver.xds.ConstraintGroup
A mechanism for grouping Parameter Constraints with logical operators (LogicalOps). The
default logical operator is OR.
e.g. ( ['true', 't', 'yes', 'y'] or [1] )
| Constructor Summary | |
ConstraintGroup()
Instantiates an empty ConstraintGroup. |
|
| Method Summary | |
void |
add(Constraint constraint)
Adds a Constraint to this constraint group. |
boolean |
canBeAppliedToMultipleParams()
Can this constraint be applied to multiple Parameters? |
boolean |
equals(Object o)
Is the passed object equal to this constraint? |
boolean |
forScalar()
Can this constrait be applied to a scalar Parameter?
|
boolean |
forStructured()
Can this constraint be applied to a structured Parameter?
|
List |
getTypes()
Returns the list of DataTypes this constraint can be applied to. |
int |
hashCode()
Returns this constraint's hashcode |
void |
setNOT()
Negates this constraint. |
void |
setOperator(LogicalOp someOp)
Changes this constraint groups LogicalOp to someOp. |
| Methods inherited from class com.novell.nds.dirxml.driver.xds.Constraint |
getNOT, getOperator, getType, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ConstraintGroup()
ConstraintGroup.
| Method Detail |
public void setNOT()
public boolean forStructured()
ConstraintParameter?
A structured Parameter consists of multiple primitives or other structured Parameters.
forStructured in class Constrainttrue if it can; false if it can'tpublic boolean forScalar()
ConstraintParameter?
A scalar Parmeter is a primitive (e.g., long, int, boolean) that has a single value.
forScalar in class Constrainttrue if it can; false if it can'tpublic void setOperator(LogicalOp someOp)
LogicalOp to someOp.
e.g. (['true', 't', 'yes', 'y'] or [1])
e.g. (['true', 't', 'yes', 'y'] and [1])
someOp - is ignored when nullpublic void add(Constraint constraint)
Constraint to this constraint group.
constraint - must not be null; a constraint may only be added oncepublic int hashCode()
public boolean equals(Object o)
o - may be null
true if they're equal; false if they're notpublic boolean canBeAppliedToMultipleParams()
ConstraintParameters?
canBeAppliedToMultipleParams in class Constrainttrue if it can; false if it can'tpublic List getTypes()
ConstraintDataTypes this constraint can be applied to.
getTypes in class ConstraintList of DataTypes; will not return null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||