Class Manifest.ExistingAttribute

  • All Implemented Interfaces:
    java.lang.Iterable<java.lang.String>
    Enclosing class:
    Manifest

    public class Manifest.ExistingAttribute
    extends Manifest.Attribute
    implements java.lang.Iterable<java.lang.String>
    • Constructor Summary

      Constructors 
      Constructor Description
      ExistingAttribute​(java.util.jar.Attributes attributes, java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addValue​(java.lang.String value)
      Add a new value to this attribute - making it multivalued.
      java.lang.String getKey()
      Get the attribute's Key - its name in lower case.
      java.lang.String getValue()
      Get the Attribute's value.
      java.util.Iterator<java.lang.String> iterator()  
      void setName​(java.lang.String name)
      Set the Attribute's name; required
      void setValue​(java.lang.String value)
      Set the Attribute's value; required
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • ExistingAttribute

        public ExistingAttribute​(java.util.jar.Attributes attributes,
                                 java.lang.String name)
    • Method Detail

      • iterator

        public java.util.Iterator<java.lang.String> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.lang.String>
        Overrides:
        iterator in class Manifest.Attribute
      • setName

        public void setName​(java.lang.String name)
        Description copied from class: Manifest.Attribute
        Set the Attribute's name; required
        Overrides:
        setName in class Manifest.Attribute
        Parameters:
        name - the attribute's name
      • getKey

        public java.lang.String getKey()
        Description copied from class: Manifest.Attribute
        Get the attribute's Key - its name in lower case.
        Overrides:
        getKey in class Manifest.Attribute
        Returns:
        the attribute's key.
      • setValue

        public void setValue​(java.lang.String value)
        Description copied from class: Manifest.Attribute
        Set the Attribute's value; required
        Overrides:
        setValue in class Manifest.Attribute
        Parameters:
        value - the attribute's value
      • addValue

        public void addValue​(java.lang.String value)
        Description copied from class: Manifest.Attribute
        Add a new value to this attribute - making it multivalued.
        Overrides:
        addValue in class Manifest.Attribute
        Parameters:
        value - the attribute's additional value