|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.archiver.jar.Manifest.Section
public static class Manifest.Section
A manifest section - you can nest attribute elements into sections. A section consists of a set of attribute values, separated from other sections by a blank line.
| Constructor Summary | |
|---|---|
Manifest.Section()
|
|
| Method Summary | |
|---|---|
String |
addAttributeAndCheck(Manifest.Attribute attribute)
Add an attribute to the section |
void |
addConfiguredAttribute(Manifest.Attribute attribute)
Add an attribute to the section. |
boolean |
equals(Object rhs)
|
Manifest.Attribute |
getAttribute(String attributeName)
Get a attribute of the section |
String |
getName()
Get the Section's name. |
Enumeration<String> |
getWarnings()
Get the warnings for this section. |
int |
hashCode()
|
Iterator<String> |
iterator()
|
void |
setName(String name)
The name of the section; optional -default is the main section. |
protected void |
storeAttribute(Manifest.Attribute attribute)
Store an attribute and update the index. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Manifest.Section()
| Method Detail |
|---|
public void setName(String name)
name - the section's namepublic String getName()
public Iterator<String> iterator()
iterator in interface Iterable<String>public Manifest.Attribute getAttribute(String attributeName)
attributeName - the name of the attribute
public void addConfiguredAttribute(Manifest.Attribute attribute)
throws ManifestException
attribute - the attribute to be added to the section
ManifestException - if the attribute is not valid.
public String addAttributeAndCheck(Manifest.Attribute attribute)
throws ManifestException
attribute - the attribute to be added.
ManifestException - if the attribute already
exists in this section.protected void storeAttribute(Manifest.Attribute attribute)
attribute - the attribute to be storedpublic Enumeration<String> getWarnings()
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object rhs)
equals in class ObjectObject.equals(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||