Class AttributeSet

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class AttributeSet
    extends java.lang.Object
    implements java.lang.Cloneable
    • Field Detail

      • EMPTY_ATTRIBUTESET

        public static final AttributeSet EMPTY_ATTRIBUTESET
        The constant empty attribute set.
      • attributes

        protected java.util.Set attributes
        The set of normal attributes.
      • alltypes

        protected java.util.Set alltypes
        The set of 'all' attributes for OAVJavaTypes.
    • Constructor Detail

      • AttributeSet

        public AttributeSet()
        Create a new attribute set.
    • Method Detail

      • addAttribute

        public void addAttribute​(OAVAttributeType attr)
        Add a new attributes.
        Parameters:
        attr - The attribute.
      • removeAttribute

        public void removeAttribute​(OAVAttributeType attr)
        Remove an attributes.
        Parameters:
        attr - The attribute.
      • addAllType

        public void addAllType​(OAVJavaType alltype)
        Add type for all attributes.
        Parameters:
        alltype - The alltype.
      • contains

        public boolean contains​(OAVAttributeType attr)
        Test if an attribute is contained in the attribute set.
        Parameters:
        attr - The attribute.
        Returns:
        True, if contained.
      • getAttributeSet

        public java.util.Set getAttributeSet()
        Get the attribute set.
        Returns:
        The attribute set.
      • getAllTypesSet

        public java.util.Set getAllTypesSet()
        Get the all types set.
        Returns:
        The all types set.
      • addAll

        public void addAll​(AttributeSet attrset)
        Add all elements on another attribute set.
        Parameters:
        attrset - The set to add.
      • clone

        public java.lang.Object clone()
        Clone this object.
        Overrides:
        clone in class java.lang.Object
        Returns:
        The clone.