org.codehaus.plexus.archiver.jar
Class Manifest.ExistingAttribute
java.lang.Object
org.codehaus.plexus.archiver.jar.Manifest.BaseAttribute
org.codehaus.plexus.archiver.jar.Manifest.Attribute
org.codehaus.plexus.archiver.jar.Manifest.ExistingAttribute
- All Implemented Interfaces:
- Iterable<String>
- Enclosing class:
- Manifest
public class Manifest.ExistingAttribute
- extends Manifest.Attribute
- implements Iterable<String>
Manifest.ExistingAttribute
public Manifest.ExistingAttribute(Attributes attributes,
String name)
iterator
public Iterator<String> iterator()
- Specified by:
iterator
in interface Iterable<String>
- Overrides:
iterator
in class Manifest.Attribute
setName
public void setName(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 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(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
getValue
public String getValue()
- Description copied from class:
Manifest.Attribute
- Get the Attribute's value.
- Overrides:
getValue
in class Manifest.Attribute
- Returns:
- the attribute's value.
addValue
public void addValue(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
Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.