A violation is assumed if an executed constraint returns at least one result.
A violation is assumed if an executed constraint returns at least one result.
Constraint#smaller().equal()
for "smaller or equal" Constraint#not().like()
for "not like" Constraint#not().greater().equal()
for "not greater or equal" Any implementaion of constraint should:
Constraint#smaller().equal()
for "smaller or equal" Constraint#not().like()
for "not like" Constraint#not().greater().equal()
for "not greater or equal" Interface
needed to perform a Validation. User can define a new type of Validation by implementing this Interface
. Method match
defines the Validation logic. This method returns an empty collection if the value being validated is valid; else it returns a Collection
with a {@link ConstraintFailure}object in it.
@author Rajeshwar Patil
@version %I%, %G%
-- As soon as the classes in javax.validation are available from official sites, this class will be removed from this compilation unit. --Define the logic to validate a given constraint
Constraint
defines an interface for a QOM constraint.
For example, assume a document has a property places indicating the related places with the document. This property corresponds to a facet and assume that this facet has two values Paris and London. Each such value of a facet is represented with a separate constraint.
Partly based on Hypersonic code. @author Thomas Mueller (Hypersonic SQL Group) @author Fred Toussi (fredt@users dot sourceforge.net) @version 1.9.0 @since Hypersonic SQL
Partly based on Hypersonic code. @author Thomas Mueller (Hypersonic SQL Group) @author Fred Toussi (fredt@users dot sourceforge.net) @version 1.9.0 @since Hypersonic SQL
The following features are supported:
true
, one or more additional properties must be specified. This is useful for features like SSL, which when enabled, requires that various SSL related configuration options are specified Constraint
instance constraints the co-domain of a long value (signed 64bit).
@author Frank Fock
@version 1.0
boolean
result. A constraint tests a single argument against some conditional expression. For example, a "required" constraint will return true if the provided argument is non-null or empty, false otherwise.
@author Keith DonaldTo have better responsiveness, you can handle all (or some) validation at the client by implementing an additional interface, {@link ClientConstraint}.
If you prefer to have a custom way to display the error message (other than the default error box). You can also implement {@link CustomConstraint}. Then, {@link CustomConstraint#showCustomError} is called instead ofshowing the default error box.
Since 5.0.0, {@link ClientConstraint} takes higher priorityif both implemented. @author tomyeh @see CustomConstraint @see ClientConstraint
Propagator
. It can either be posted or reified
@author Jean-Guillaume Fages
@author Xavier Lorca
@author Charles Prud'homme
@version major revision 13/01/2014
@see solver.variables.Variable
@see Propagator
@see solver.propagation.IPropagationEngine
@since 0.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|