Package org.codehaus.plexus.archiver.jar
Class Manifest.ExistingAttribute
java.lang.Object
org.codehaus.plexus.archiver.jar.Manifest.BaseAttribute
org.codehaus.plexus.archiver.jar.Manifest.Attribute
org.codehaus.plexus.archiver.jar.Manifest.ExistingAttribute
- Enclosing class:
Manifest
-
Field Summary
FieldsFields inherited from class org.codehaus.plexus.archiver.jar.Manifest.BaseAttribute
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new value to this attribute - making it multivalued.getKey()Get the attribute's Key - its name in lower case.getValue()Get the Attribute's value.iterator()voidSet the Attribute's name; requiredvoidSet the Attribute's value; required(package private) voidWrites the attribute out to a writer.Methods inherited from class org.codehaus.plexus.archiver.jar.Manifest.Attribute
equals, hashCodeMethods inherited from class org.codehaus.plexus.archiver.jar.Manifest.BaseAttribute
getNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
attributes
-
-
Constructor Details
-
ExistingAttribute
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<String>- Overrides:
iteratorin classManifest.Attribute
-
setName
Description copied from class:Manifest.AttributeSet the Attribute's name; required- Overrides:
setNamein classManifest.Attribute- Parameters:
name- the attribute's name
-
getKey
Description copied from class:Manifest.AttributeGet the attribute's Key - its name in lower case.- Overrides:
getKeyin classManifest.Attribute- Returns:
- the attribute's key.
-
setValue
Description copied from class:Manifest.AttributeSet the Attribute's value; required- Overrides:
setValuein classManifest.Attribute- Parameters:
value- the attribute's value
-
getValue
Description copied from class:Manifest.AttributeGet the Attribute's value.- Overrides:
getValuein classManifest.Attribute- Returns:
- the attribute's value.
-
addValue
Description copied from class:Manifest.AttributeAdd a new value to this attribute - making it multivalued.- Overrides:
addValuein classManifest.Attribute- Parameters:
value- the attribute's additional value
-
write
Description copied from class:Manifest.AttributeWrites the attribute out to a writer.- Overrides:
writein classManifest.Attribute- Parameters:
writer- the Writer to which the attribute is written- Throws:
IOException- if the attribute value cannot be written
-