|
||||||||||
| 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.RegExConstraint
A constraint that specifies a regular expression pattern for a
Parameter's values.
e.g. "ab"
NOTE: To use this type of constraint, your driver MUST run in a 1.4 JVM or later.
| Constructor Summary | |
RegExConstraint(String somePattern)
Creates a new regular expression constraint using the specified pattern and pattern flags. |
|
RegExConstraint(String somePattern,
int flags)
Creates a new regular expression constraint using the specified pattern and pattern flags. |
|
| Method Summary | |
boolean |
canBeAppliedToMultipleParams()
Can this constraint be applied to multiple Parameters? |
Object |
cloneAsNeeded(boolean sameParameter)
|
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. |
| 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 |
| Constructor Detail |
public RegExConstraint(String somePattern,
int flags)
somePattern - a legal regular expression pattern; must not be
nullflags - should be one of the integer constants specified in class
java.util.regex.Pattern
IllegalArgumentException - if pattern is
null or an illegal patternPatternpublic RegExConstraint(String somePattern)
somePattern - a legal regular expression pattern; must not be
null
IllegalArgumentException - if pattern is
null or an illegal patternPattern| Method Detail |
public int hashCode()
public boolean equals(Object o)
o - may be null
true if they're equal; false if they're notpublic Object cloneAsNeeded(boolean sameParameter)
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 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 | |||||||||