Package com._1c.g5.aef2.validators
Class Validable
java.lang.Object
com._1c.g5.aef2.validators.Validable
- All Implemented Interfaces:
IValidable
- Direct Known Subclasses:
Model
Base class for all validable object classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addValidator
(org.eclipse.core.databinding.validation.IValidator validator) Adds the external validator to this validable.protected Object
Provides validation target for this validable object.void
removeValidator
(org.eclipse.core.databinding.validation.IValidator validator) Removes the external validator from this validable.org.eclipse.core.runtime.IStatus
validate()
Validates this object state.org.eclipse.core.runtime.IStatus
Validates the state of external object of the same type with this object.
-
Constructor Details
-
Validable
public Validable()
-
-
Method Details
-
validate
public org.eclipse.core.runtime.IStatus validate()Description copied from interface:IValidable
Validates this object state.- Specified by:
validate
in interfaceIValidable
- Returns:
- the validation status.
-
validate
Description copied from interface:IValidable
Validates the state of external object of the same type with this object.- Specified by:
validate
in interfaceIValidable
- Parameters:
object
- the object to validate.- Returns:
- the validation status.
-
addValidator
public void addValidator(org.eclipse.core.databinding.validation.IValidator validator) Description copied from interface:IValidable
Adds the external validator to this validable.- Specified by:
addValidator
in interfaceIValidable
- Parameters:
validator
- the validator to add.
-
removeValidator
public void removeValidator(org.eclipse.core.databinding.validation.IValidator validator) Description copied from interface:IValidable
Removes the external validator from this validable.- Specified by:
removeValidator
in interfaceIValidable
- Parameters:
validator
- the validator to remove.
-
getValidatorTarget
Provides validation target for this validable object. Override this method to change the validation target of this validable.- Returns:
- this object validation target.
-