org.apache.ivy.osgi.core
Class ManifestHeaderValue
java.lang.Object
org.apache.ivy.osgi.core.ManifestHeaderValue
public class ManifestHeaderValue
- extends java.lang.Object
Parse a header of a manifest. The manifest header is composed with the following rules:
header ::= header-element (',' header-element)*
header-element ::= values (';' (attribute | directive) )*
values ::= value (';' value)*
value ::= <any string value that does not have ';' or ','>
attribute ::= key '=' value
directive ::= key '=' value
key ::= token
value ::= token | quoted-string | double-quoted-string
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ManifestHeaderValue
public ManifestHeaderValue(java.lang.String header)
throws java.text.ParseException
- Throws:
java.text.ParseException
getElements
public java.util.List getElements()
getSingleValue
public java.lang.String getSingleValue()
getValues
public java.util.List getValues()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
writeParseException
public static void writeParseException(java.io.PrintStream out,
java.lang.String source,
java.text.ParseException e)