Class AttributeSet

    • Method Detail

      • getKlass

        public Class<?> getKlass()
      • getName

        public String getName()
      • contains

        public boolean contains​(String name)
        Returns whether this attribute set contains the specified named attribute
        Parameters:
        name - the name of the attribute
      • attribute

        public <T> Attribute<T> attribute​(String name)
        Returns the named attribute
        Parameters:
        name - the name of the attribute to return
        Returns:
        the attribute
      • attribute

        public <T> Attribute<T> attribute​(Enum<?> name)
        Returns the named attribute
        Parameters:
        name - the name of the attribute to return
        Returns:
        the attribute
      • read

        public void read​(AttributeSet other)
        Copies all attribute from another AttributeSet
        Parameters:
        other - the source AttributeSet
      • protect

        public AttributeSet protect()
        Returns a new ValueSet where immutable Attributes are write-protected
        Returns:
      • isModified

        public boolean isModified()
        Returns whether any attributes in this set have been modified
      • isProtected

        public boolean isProtected()
        Returns whether this attribute set is protected
      • write

        public void write​(ConfigurationWriter writer,
                          String name)
        Writes this attributeset to the specified ConfigurationWriter as an element
        Parameters:
        writer -
      • write

        public void write​(ConfigurationWriter writer,
                          Enum<?> name)
        Writes this attributeset to the specified ConfigurationWriter as an element
        Parameters:
        writer -
      • write

        public void write​(ConfigurationWriter writer,
                          String persistentName,
                          AttributeDefinition<?>... defs)
        Writes the specified attributes in this attributeset to the specified ConfigurationWriter as an element
        Parameters:
        writer -
      • write

        public void write​(ConfigurationWriter writer)
        Writes the attributes of this attributeset as part of the current element
        Parameters:
        writer -
      • validate

        public void validate()
        Validates the Attribute values.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateUpdate

        public void validateUpdate​(AttributeSet other)
        Description copied from interface: Updatable
        Verifies that updating the mutable part of this instance with the values of the other instance is possible
        Specified by:
        validateUpdate in interface Updatable<AttributeSet>
      • reset

        public void reset()
      • isEmpty

        public boolean isEmpty()