Class Manifest.Attribute
java.lang.Object
org.codehaus.plexus.archiver.jar.Manifest.BaseAttribute
org.codehaus.plexus.archiver.jar.Manifest.Attribute
- Direct Known Subclasses:
Manifest.ExistingAttribute
- Enclosing class:
Manifest
An attribute for the manifest.
Those attributes that are not nested into a section will be added to the "Main" section.
- Since:
- Ant 1.4
-
Field Summary
Fields inherited from class Manifest.BaseAttribute
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new value to this attribute - making it multivalued.booleangetKey()Get the attribute's Key - its name in lower case.getValue()Get the Attribute's value.inthashCode()iterator()voidSet the Attribute's name; requiredvoidSet the Attribute's value; requiredMethods inherited from class Manifest.BaseAttribute
getNameMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
Attribute
public Attribute()Construct an empty attribute -
Attribute
-
-
Method Details
-
iterator
-
hashCode
public int hashCode()- Overrides:
hashCodein classManifest.BaseAttribute- See Also:
-
equals
- Overrides:
equalsin classManifest.BaseAttribute- See Also:
-
setName
Set the Attribute's name; required- Parameters:
name- the attribute's name
-
getKey
Get the attribute's Key - its name in lower case.- Returns:
- the attribute's key.
-
setValue
Set the Attribute's value; required- Parameters:
value- the attribute's value
-
getValue
-
addValue
Add a new value to this attribute - making it multivalued.- Parameters:
value- the attribute's additional value
-