Class ValidationTreeObject

  • All Implemented Interfaces:
    IValidationMessageContainer

    public class ValidationTreeObject
    extends Object
    implements IValidationMessageContainer
    Represents an object in the validation tree.

    In general, an object has a name, values (representing attributes), objects (represting relations) and validations (if this object is the target of a relation, the validation message represent the validation messages on that relation).

    If this object represents an array (i.e, the target of a multi-valued relation), then this object doesn't have values (as arrays cannot have properties like regular objects). To indicate that this object represents an array, the #setNoValues() method should be called.

    If this object represents an element of an array, then it should have no name.

    Since:
    11.3
    Author:
    Petru Galanton
    • Constructor Detail

      • ValidationTreeObject

        public ValidationTreeObject()
    • Method Detail

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • hasValues

        public boolean hasValues()
        Indicates whether this object has at least 1 value.
        Returns:
        true if this object has at least 1 value, false otherwise.
      • hasObjects

        public boolean hasObjects()
        Indicates whether this object has at least 1 child objects.
        Returns:
        true if this object has at least 1 child object, false otherwise.
      • hasValidations

        public boolean hasValidations()
        Indicates whether this object has at least 1 validation message.
        Returns:
        true if this object has at least 1 validation message, false otherwise