public class AddAttributes
extends java.lang.Object
implements com.brambolt.util.jar.Manifests
| Constructor and Description |
|---|
AddAttributes(java.util.List<java.lang.String> attributes)
Constructor.
|
AddAttributes(java.lang.String... attributes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
apply(java.util.List<java.lang.String> lines)
Inserts the attributes into the manifest lines.
|
boolean |
hasAttribute(java.util.List<java.lang.String> lines,
java.lang.String attribute)
Checks whether the parameter attribute appears in the parameter manifest
lines.
|
void |
validate(java.util.List<java.lang.String> attributes)
Validates the parameter attributes.
|
boolean |
validate(java.lang.String attribute)
Validates the formatting of the parameter attribute.
|
public AddAttributes(java.lang.String... attributes)
attributes - The attributes to be addedpublic AddAttributes(java.util.List<java.lang.String> attributes)
attributes - The attributes to be addedpublic void validate(java.util.List<java.lang.String> attributes)
attributes - The attributes to be addedjava.lang.IllegalArgumentException - If any parameter appears invalidpublic boolean validate(java.lang.String attribute)
attribute - The attribute to checkpublic java.util.List<java.lang.String> apply(java.util.List<java.lang.String> lines)
Manifest-Version and
Signature-Version attributes, if they are present.apply in interface com.brambolt.util.jar.Manifestslines - The lines of the manifest document to add topublic boolean hasAttribute(java.util.List<java.lang.String> lines,
java.lang.String attribute)
lines - The manifest lines to checkattribute - The attribute to check for