Interface Attribute

    • Method Detail

      • getIdentifier

        Identifier getIdentifier()
        Unique Identifier for the attribute.

        This value is non-null in the case that getType().isIdentifiable() is true.

        A unique identifier for the attribute, or null if the attribute is non-identifiable.
      • validate

        void validate()
               throws IllegalAttributeException
        Check the attribute value against the constraints provided by the AttributeDescriptor.

        Please note this method checks the value only - it should have the correct java binding, it should only be null if isNillable is true; and if a value is provided it should satisfy all of the restrictions provided.

        To check the the number of times an attribute is used (minOccurs and maxOccurs) please use ComplexAttribute.validate().