Class Manifest.Attribute

    • Constructor Detail

      • Attribute

        public Attribute()
        Construct an empty attribute
      • Attribute

        public Attribute​(String name,
                         String value)
        Construct a manifest by specifying its name and value
        Parameters:
        name - the attribute's name
        value - the Attribute's value
    • Method Detail

      • setName

        public void setName​(String name)
        Set the Attribute's name; required
        Parameters:
        name - the attribute's name
      • getKey

        public String getKey()
        Get the attribute's Key - its name in lower case.
        Returns:
        the attribute's key.
      • setValue

        public void setValue​(String value)
        Set the Attribute's value; required
        Parameters:
        value - the attribute's value
      • getValue

        public String getValue()
        Get the Attribute's value.
        Returns:
        the attribute's value.
      • addValue

        public void addValue​(String value)
        Add a new value to this attribute - making it multivalued.
        Parameters:
        value - the attribute's additional value