com.novell.nds.dirxml.driver.xds
Class SingleValueConstraint

java.lang.Object
  extended bycom.novell.nds.dirxml.driver.xds.Constraint
      extended bycom.novell.nds.dirxml.driver.xds.SingleValueConstraint

public final class SingleValueConstraint
extends Constraint

Constrains a parameter to have at most one value.


Constructor Summary
SingleValueConstraint()
          Creates a new single-value constraint instance.
 
Method Summary
 boolean canBeAppliedToMultipleParams()
          Can this constraint be applied to multiple Parameters?
 boolean equals(Object o)
           
 boolean forScalar()
          Can this constrait be applied to a scalar Parameter?
 boolean forStructured()
          Can this constraint be applied to a structured Parameter?
 int 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

SingleValueConstraint

public SingleValueConstraint()
Creates a new single-value constraint instance.

Method Detail

hashCode

public int hashCode()

equals

public boolean equals(Object o)

forStructured

public boolean forStructured()
Description copied from class: Constraint
Can this constraint be applied to a structured Parameter?

A structured Parameter consists of multiple primitives or other structured Parameters.

Specified by:
forStructured in class Constraint
Returns:
true if it can; false if it can't

forScalar

public boolean forScalar()
Description copied from class: Constraint
Can this constrait be applied to a scalar Parameter?

A scalar Parmeter is a primitive (e.g., long, int, boolean) that has a single value.

Specified by:
forScalar in class Constraint
Returns:
true if it can; false if it can't

canBeAppliedToMultipleParams

public boolean canBeAppliedToMultipleParams()
Description copied from class: Constraint
Can this constraint be applied to multiple Parameters?

Specified by:
canBeAppliedToMultipleParams in class Constraint
Returns:
true if it can; false if it can't