|
||||||||||
| 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.RangeConstraint
A constraint that defines the possible range of values for a
Parameter. Ranges are inclusive, meaning the boundary values
are included in the range.
e.g., [1...100]
| Field Summary | |
static RangeConstraint |
NEGATIVE
Numbers < 0. |
static RangeConstraint |
NON_NEGATIVE
Numbers >= 0 |
static RangeConstraint |
POSITIVE
Numbers > 0. |
| Constructor Summary | |
RangeConstraint(char firstAndLast)
Creates a new RangeConstraint object. |
|
RangeConstraint(char first,
char last)
Creates a new character range constraint. |
|
RangeConstraint(double firstAndLast)
Creates a new RangeConstraint object. |
|
RangeConstraint(double first,
double last)
Creates a new numeric range constraint. |
|
RangeConstraint(double someNumber,
EqualityOp someOp)
Creates a new numeric range constraint. |
|
RangeConstraint(long firstAndLast)
Creates a new RangeConstraint object. |
|
RangeConstraint(long someNumber,
EqualityOp someOp)
Creates a new numeric range constraint. |
|
RangeConstraint(long first,
long last)
Creates a new numeric range constraint. |
|
| Method Summary | |
boolean |
canBeAppliedToMultipleParams()
Can this constraint be applied to multiple Parameters? |
boolean |
equals(Object o)
Is the passed constraint 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?
|
int |
hashCode()
Returns this constraint's hashcode. |
void |
setNOT()
|
| Methods inherited from class com.novell.nds.dirxml.driver.xds.Constraint |
getNOT, getOperator, getType, getTypes, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final RangeConstraint POSITIVE
public static final RangeConstraint NON_NEGATIVE
public static final RangeConstraint NEGATIVE
| Constructor Detail |
public RangeConstraint(char first,
char last)
e.g. ['a'...'z']
first - the first character in the rangelast - the last character in the rangepublic RangeConstraint(char firstAndLast)
firstAndLast - the first and last character of the range
public RangeConstraint(long first,
long last)
e.g. [1...100]
first - the first number in the rangelast - the last number in the rangepublic RangeConstraint(long firstAndLast)
firstAndLast - the first and last number of the range
public RangeConstraint(double first,
double last)
e.g. [1.1...100.1]
first - the first number in the rangelast - the last number in the rangepublic RangeConstraint(double firstAndLast)
firstAndLast - the first and last number of the range
public RangeConstraint(long someNumber,
EqualityOp someOp)
e.g. [1...n] or [n...1]
someNumber - the lower or upper bound of the rangesomeOp - the equality operator (e.g. >,<,>=,<=); must
not be null
public RangeConstraint(double someNumber,
EqualityOp someOp)
e.g. [1...n] or [n...1]
someNumber - the lower or upper bound of the rangesomeOp - the equality operator (e.g. >,<,>=,<=); must
not be null| Method Detail |
public void setNOT()
public int hashCode()
public boolean equals(Object o)
o - may be null
true if they're equal; false if they're notpublic 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 boolean canBeAppliedToMultipleParams()
ConstraintParameters?
canBeAppliedToMultipleParams in class Constrainttrue if it can; false if it can't
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||