public static class Manifest.Section
extends java.lang.Object
implements java.lang.Iterable<java.lang.String>
Modifier and Type | Field and Description |
---|---|
private java.util.Vector<java.lang.String> |
attributeIndex
Index used to retain the attribute ordering
|
private java.util.Hashtable<java.lang.String,Manifest.Attribute> |
attributes
The section's attributes.
|
private java.lang.String |
name
The section's name if any.
|
private java.util.Vector<java.lang.String> |
warnings
Warnings for this section
|
Constructor and Description |
---|
Section() |
Modifier and Type | Method and 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.
|
private java.util.Vector<java.lang.String> warnings
private java.lang.String name
private java.util.Hashtable<java.lang.String,Manifest.Attribute> attributes
private java.util.Vector<java.lang.String> attributeIndex
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.Object
Object.hashCode()
public boolean equals(java.lang.Object rhs)
equals
in class java.lang.Object
Object.equals(java.lang.Object)