|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.archiver.jar.Manifest.BaseAttribute
org.codehaus.plexus.archiver.jar.Manifest.Attribute
public static class Manifest.Attribute
An attribute for the manifest. Those attributes that are not nested into a section will be added to the "Main" section.
| Field Summary |
|---|
| Fields inherited from class org.codehaus.plexus.archiver.jar.Manifest.BaseAttribute |
|---|
name |
| Constructor Summary | |
|---|---|
Manifest.Attribute()
Construct an empty attribute |
|
Manifest.Attribute(String name,
String value)
Construct a manifest by specifying its name and value |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.codehaus.plexus.archiver.jar.Manifest.BaseAttribute |
|---|
getName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Manifest.Attribute()
public Manifest.Attribute(String name,
String value)
name - the attribute's namevalue - the Attribute's value| Method Detail |
|---|
public Iterator<String> iterator()
iterator in interface Iterable<String>public int hashCode()
hashCode in class Manifest.BaseAttributeObject.hashCode()public boolean equals(Object rhs)
equals in class Manifest.BaseAttributeObject.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 value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||