java.lang.Iterable<java.lang.String>public static class Manifest.Section
extends java.lang.Object
implements java.lang.Iterable<java.lang.String>
| Constructor | Description |
|---|---|
Section() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
addAttributeAndCheck(Manifest.Attribute attribute) |
Add an attribute to the section
|
void |
addConfiguredAttribute(Manifest.Attribute attribute) |
Add an attribute to the section.
|
boolean |
equals(java.lang.Object rhs) |
|
Manifest.Attribute |
getAttribute(java.lang.String attributeName) |
Get a attribute of the section
|
java.lang.String |
getName() |
Get the Section's name.
|
java.util.Enumeration<java.lang.String> |
getWarnings() |
Get the warnings for this section.
|
int |
hashCode() |
|
java.util.Iterator<java.lang.String> |
iterator() |
|
void |
setName(java.lang.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.
|
public void setName(java.lang.String name)
name - the section's namepublic java.lang.String getName()
public java.util.Iterator<java.lang.String> iterator()
iterator in interface java.lang.Iterable<java.lang.String>public Manifest.Attribute getAttribute(java.lang.String attributeName)
attributeName - the name of the attributepublic void addConfiguredAttribute(Manifest.Attribute attribute) throws ManifestException
attribute - the attribute to be added to the sectionManifestException - if the attribute is not valid.public java.lang.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 java.util.Enumeration<java.lang.String> getWarnings()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object rhs)
equals in class java.lang.ObjectObject.equals(java.lang.Object)