public static class Manifest.Attribute extends Manifest.BaseAttribute implements Iterable<String>
name
Constructor and Description |
---|
Attribute()
Construct an empty attribute
|
Attribute(String name,
String value)
Construct a manifest by specifying its name and value
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(String value)
Add a new value to this attribute - making it multivalued.
|
boolean |
equals(Object rhs) |
String |
getKey()
Get the attribute's Key - its name in lower case.
|
String |
getValue()
Get the Attribute's value.
|
int |
hashCode() |
Iterator<String> |
iterator() |
void |
setName(String name)
Set the Attribute's name; required
|
void |
setValue(String value)
Set the Attribute's value; required
|
getName
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public int hashCode()
hashCode
in class Manifest.BaseAttribute
Object.hashCode()
public boolean equals(Object rhs)
equals
in class Manifest.BaseAttribute
Object.equals(java.lang.Object)
public void setName(String name)
name
- the attribute's namepublic String getKey()
public void setValue(String value)
value
- the attribute's valuepublic String getValue()
public void addValue(String value)
value
- the attribute's additional valueCopyright © 2001–2022 Codehaus Plexus. All rights reserved.