Package 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:
java.lang.Iterable<java.lang.String>
- Enclosing class:
- Manifest
public class Manifest.ExistingAttribute extends Manifest.Attribute implements java.lang.Iterable<java.lang.String>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.jar.Attributesattributes-
Fields inherited from class org.codehaus.plexus.archiver.jar.Manifest.BaseAttribute
name
-
-
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 voidaddValue(java.lang.String value)Add a new value to this attribute - making it multivalued.java.lang.StringgetKey()Get the attribute's Key - its name in lower case.java.lang.StringgetValue()Get the Attribute's value.java.util.Iterator<java.lang.String>iterator()voidsetName(java.lang.String name)Set the Attribute's name; requiredvoidsetValue(java.lang.String value)Set the Attribute's value; required(package private) voidwrite(java.io.Writer writer)Writes the attribute out to a writer.-
Methods inherited from class org.codehaus.plexus.archiver.jar.Manifest.Attribute
equals, hashCode
-
Methods inherited from class org.codehaus.plexus.archiver.jar.Manifest.BaseAttribute
getName
-
-
-
-
Method Detail
-
iterator
public java.util.Iterator<java.lang.String> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<java.lang.String>- Overrides:
iteratorin classManifest.Attribute
-
setName
public void setName(java.lang.String name)
Description copied from class:Manifest.AttributeSet the Attribute's name; required- Overrides:
setNamein classManifest.Attribute- Parameters:
name- the attribute's name
-
getKey
public java.lang.String getKey()
Description copied from class:Manifest.AttributeGet the attribute's Key - its name in lower case.- Overrides:
getKeyin classManifest.Attribute- Returns:
- the attribute's key.
-
setValue
public void setValue(java.lang.String value)
Description copied from class:Manifest.AttributeSet the Attribute's value; required- Overrides:
setValuein classManifest.Attribute- Parameters:
value- the attribute's value
-
getValue
public java.lang.String getValue()
Description copied from class:Manifest.AttributeGet the Attribute's value.- Overrides:
getValuein classManifest.Attribute- Returns:
- the attribute's value.
-
addValue
public void addValue(java.lang.String value)
Description copied from class:Manifest.AttributeAdd a new value to this attribute - making it multivalued.- Overrides:
addValuein classManifest.Attribute- Parameters:
value- the attribute's additional value
-
write
void write(java.io.Writer writer) throws java.io.IOExceptionDescription copied from class:Manifest.AttributeWrites the attribute out to a writer.- Overrides:
writein classManifest.Attribute- Parameters:
writer- the Writer to which the attribute is written- Throws:
java.io.IOException- if the attribute value cannot be written
-
-