public interface IValidationEngine
The validation engine provides capabilities for:
Modifier and Type | Method and Description |
---|---|
IConstraint |
addConstraintSpecification(IConstraintSpecification constraintSpecification)
Adds the given constraint specification to the validation engine and returns the created constraint.
|
boolean |
addListener(ValidationEngineListener listener)
Adds the given listener to the list of listeners to be notified on specific events regarding the validation
engine.
|
void |
dispose()
Disposes the validation engine.
|
java.util.Collection<IConstraint> |
getConstraints()
Returns the constraints to the registered constraint specifications.
|
java.util.Collection<ValidationEngineListener> |
getListeners()
Returns the listeners registered for the validation engine.
|
void |
initialize()
Initializes the validation engine.
|
IConstraint |
removeConstraintSpecification(IConstraintSpecification constraintSpecification)
Removes the given constraint specification from the validation engine and returns the corresponding constraint.
|
boolean |
removeListener(ValidationEngineListener listener)
Removes the given listener from the list of listeners to be notified on specific events regarding the validation
engine.
|
void initialize()
void dispose()
java.util.Collection<IConstraint> getConstraints()
IConstraint addConstraintSpecification(IConstraintSpecification constraintSpecification)
constraintSpecification
- The constraint specification instance to be registered.IConstraint removeConstraintSpecification(IConstraintSpecification constraintSpecification)
constraintSpecification
- The constraint specification to be deregistered.java.util.Collection<ValidationEngineListener> getListeners()
boolean addListener(ValidationEngineListener listener)
listener
- The listener to be registered.true
if the listener was not registered before.boolean removeListener(ValidationEngineListener listener)
listener
- The listener to be deregistered.true
if the listener was in fact registered.