Class 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 Detail

      • Validable

        public Validable()
    • Method Detail

      • validate

        public ValidationResults validate​(Object object)
        Description copied from interface: IValidable
        Validates the state of external object of the same type with this object.
        Specified by:
        validate in interface IValidable
        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 interface IValidable
        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 interface IValidable
        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.