public class Manifest.ExistingAttribute extends Manifest.Attribute implements java.lang.Iterable<java.lang.String>
Modifier and Type | Field and Description |
---|---|
private java.util.jar.Attributes |
attributes |
name
Constructor and Description |
---|
ExistingAttribute(java.util.jar.Attributes attributes,
java.lang.String name) |
Modifier and Type | Method and 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
|
(package private) void |
write(java.io.Writer writer)
Writes the attribute out to a writer.
|
equals, hashCode
getName
public ExistingAttribute(java.util.jar.Attributes attributes, java.lang.String name)
public java.util.Iterator<java.lang.String> iterator()
iterator
in interface java.lang.Iterable<java.lang.String>
iterator
in class Manifest.Attribute
public void setName(java.lang.String name)
Manifest.Attribute
setName
in class Manifest.Attribute
name
- the attribute's namepublic java.lang.String getKey()
Manifest.Attribute
getKey
in class Manifest.Attribute
public void setValue(java.lang.String value)
Manifest.Attribute
setValue
in class Manifest.Attribute
value
- the attribute's valuepublic java.lang.String getValue()
Manifest.Attribute
getValue
in class Manifest.Attribute
public void addValue(java.lang.String value)
Manifest.Attribute
addValue
in class Manifest.Attribute
value
- the attribute's additional valuevoid write(java.io.Writer writer) throws java.io.IOException
Manifest.Attribute
write
in class Manifest.Attribute
writer
- the Writer to which the attribute is writtenjava.io.IOException
- if the attribute value cannot be written