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
public abstract class Validable extends Object implements IValidable
Base class for all validable object classes.
-
-
Constructor Summary
Constructors Constructor Description Validable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValidator(org.eclipse.core.databinding.validation.IValidator validator)Adds the external validator to this validable.protected ObjectgetValidatorTarget()Provides validation target for this validable object.voidremoveValidator(org.eclipse.core.databinding.validation.IValidator validator)Removes the external validator from this validable.ValidationResultsvalidate()Validates this object state.ValidationResultsvalidate(Object object)Validates the state of external object of the same type with this object.
-
-
-
Method Detail
-
validate
public ValidationResults validate()
Description copied from interface:IValidableValidates this object state.- Specified by:
validatein interfaceIValidable- Returns:
- the validation status.
-
validate
public ValidationResults validate(Object object)
Description copied from interface:IValidableValidates the state of external object of the same type with this object.- Specified by:
validatein 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:IValidableAdds the external validator to this validable.- Specified by:
addValidatorin interfaceIValidable- Parameters:
validator- the validator to add.
-
removeValidator
public void removeValidator(org.eclipse.core.databinding.validation.IValidator validator)
Description copied from interface:IValidableRemoves the external validator from this validable.- Specified by:
removeValidatorin interfaceIValidable- Parameters:
validator- the validator to remove.
-
getValidatorTarget
protected Object getValidatorTarget()
Provides validation target for this validable object. Override this method to change the validation target of this validable.- Returns:
- this object validation target.
-
-