Constructor and Description |
---|
Manifest.Section() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void setName(String name)
name
- the section's namepublic String getName()
public Manifest.Attribute getAttribute(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 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 Object
Object.hashCode()
public boolean equals(Object rhs)
equals
in class Object
Object.equals(java.lang.Object)
Copyright © 2001-2012 Codehaus. All Rights Reserved.