Interface IWithValidation

  • All Known Implementing Classes:
    MidFileData, StartGroupData, Unit

    public interface IWithValidation
    Provides the methods to add and retrieve validation rules for an object.
    • Method Detail

      • hasValidation

        boolean hasValidation()
        Indicates if the object has validation data.
        Returns:
        true if the object has validataion data, false otherwise.
      • getValidation

        Validation getValidation()
        Gets the Validation object for the parent, creates an empty of if there is none.
        Returns:
        the Validation object for the parent (can be empty, but never null).
      • setValidation

        void setValidation​(Validation validation)
        sets the Validation object for the parent.
        Parameters:
        validation - the new Validation object for the parent.