public static class Manifest.Attribute extends Manifest.BaseAttribute implements java.lang.Iterable<java.lang.String>
name| Constructor and Description |
|---|
Attribute()
Construct an empty attribute
|
Attribute(java.lang.String name,
java.lang.String value)
Construct a manifest by specifying its name and value
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(java.lang.String value)
Add a new value to this attribute - making it multivalued.
|
boolean |
equals(java.lang.Object rhs) |
java.lang.String |
getKey()
Get the attribute's Key - its name in lower case.
|
java.lang.String |
getValue()
Get the Attribute's value.
|
int |
hashCode() |
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
|
getNamepublic Attribute()
public Attribute(java.lang.String name,
java.lang.String value)
name - the attribute's namevalue - the Attribute's valuepublic java.util.Iterator<java.lang.String> iterator()
iterator in interface java.lang.Iterable<java.lang.String>public int hashCode()
hashCode in class Manifest.BaseAttributeObject.hashCode()public boolean equals(java.lang.Object rhs)
equals in class Manifest.BaseAttributeObject.equals(java.lang.Object)public void setName(java.lang.String name)
name - the attribute's namepublic java.lang.String getKey()
public void setValue(java.lang.String value)
value - the attribute's valuepublic java.lang.String getValue()
public void addValue(java.lang.String value)
value - the attribute's additional value