Class AttributeContainer

  • Direct Known Subclasses:
    ContextData, ProjectionData

    public abstract class AttributeContainer
    extends Object
    Abstract base class for meta data that contains attributes and an id.
    Author:
    Nick Collier
    • Constructor Detail

      • AttributeContainer

        public AttributeContainer​(String id)
    • Method Detail

      • getId

        public String getId()
        Gets the id of this attribute container.
        Returns:
        the id of this attribute container.
      • addAttribute

        public void addAttribute​(Attribute attribute)
        Adds an attribute to this AttributeContainer.
        Parameters:
        attribute - the attribute to add
      • attributes

        public Iterable<Attribute> attributes()
        Gets an iterable over the attributes this contains.
        Returns:
        an iterable over the attributes this contains.
      • getAttributeCount

        public int getAttributeCount()
        Gets the number of attributes contained by this container.
        Returns:
        the number of attributes contained by this container.