|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.aries.application.utils.manifest.ManifestHeaderProcessor
public class ManifestHeaderProcessor
| Nested Class Summary | |
|---|---|
static interface |
ManifestHeaderProcessor.NameValueCollection<N,V>
Intended to provide a standard way to add Name/Value's to aggregations of Name/Value's. |
static class |
ManifestHeaderProcessor.NameValueList<N,V>
List of Name/Value |
static class |
ManifestHeaderProcessor.NameValueMap<N,V>
Map of Name -> Value. |
static class |
ManifestHeaderProcessor.NameValuePair<N,V>
A simple class to associate two types. |
| Field Summary | |
|---|---|
static String |
NESTED_FILTER_ATTRIBUTE
|
| Constructor Summary | |
|---|---|
ManifestHeaderProcessor()
|
|
| Method Summary | |
|---|---|
static String |
generateFilter(Map<String,String> attribs)
Generate a filter from a set of attributes. |
static String |
generateFilter(String type,
String name,
Map<String,String> attribs)
Generate a filter from a set of attributes. |
static ManifestHeaderProcessor.NameValuePair<String,ManifestHeaderProcessor.NameValueMap<String,String>> |
parseBundleSymbolicName(String s)
Parse a bundle symbolic name. |
static Content |
parseContent(String contentName,
ManifestHeaderProcessor.NameValueMap<String,String> nameValueMap)
Parse a content |
static Content |
parseContent(String bundleSymbolicName,
String versionRange)
Parse a content object |
static List<ManifestHeaderProcessor.NameValuePair<String,ManifestHeaderProcessor.NameValueMap<String,String>>> |
parseExportList(List<String> list)
Parse an export style header in a list. |
static List<ManifestHeaderProcessor.NameValuePair<String,ManifestHeaderProcessor.NameValueMap<String,String>>> |
parseExportString(String s)
Parse an export style header. |
static Map<String,String> |
parseFilter(String filter)
|
static Map<String,ManifestHeaderProcessor.NameValueMap<String,String>> |
parseImportString(String s)
Parse an import style header. |
static VersionRange |
parseVersionRange(String s)
Parse a version range.. |
static VersionRange |
parseVersionRange(String s,
boolean exactVersion)
Parse a version range and indicate if the version is an exact version |
static List<String> |
split(String value,
String delimiter)
Splits a delimiter separated string, tolerating presence of non separator commas within double quoted segments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NESTED_FILTER_ATTRIBUTE
| Constructor Detail |
|---|
public ManifestHeaderProcessor()
| Method Detail |
|---|
public static List<String> split(String value,
String delimiter)
value - the value to be splitdelimiter - the delimiter string such as ',' etc.
public static List<ManifestHeaderProcessor.NameValuePair<String,ManifestHeaderProcessor.NameValueMap<String,String>>> parseExportString(String s)
pkg1;attrib=value;attrib=value,pkg2;attrib=value,pkg3;attrib=value2
Result is returned as a list, as export does allow duplicate package exports.
list - The data to parse.
public static List<ManifestHeaderProcessor.NameValuePair<String,ManifestHeaderProcessor.NameValueMap<String,String>>> parseExportList(List<String> list)
pkg1;attrib=value;attrib=value pkg2;attrib=value pkg3;attrib=value2
Result is returned as a list, as export does allow duplicate package exports.
list - The data to parse.
public static Map<String,ManifestHeaderProcessor.NameValueMap<String,String>> parseImportString(String s)
pkg1;attrib=value;attrib=value,pkg2;attrib=value,pkg3;attrib=value
Result is returned as a set, as import does not allow duplicate package imports.
s - The data to parse.
public static ManifestHeaderProcessor.NameValuePair<String,ManifestHeaderProcessor.NameValueMap<String,String>> parseBundleSymbolicName(String s)
bundlesymbolicname;attrib=value;attrib=value
s - The data to parse.
public static VersionRange parseVersionRange(String s)
throws IllegalArgumentException
s -
IllegalArgumentException - if the String could not be parsed as a VersionRange
public static VersionRange parseVersionRange(String s,
boolean exactVersion)
throws IllegalArgumentException
s - exactVersion -
IllegalArgumentException - if the String could not be parsed as a VersionRangepublic static String generateFilter(Map<String,String> attribs)
attribs -
public static String generateFilter(String type,
String name,
Map<String,String> attribs)
type - name - attribs -
public static Map<String,String> parseFilter(String filter)
public static Content parseContent(String bundleSymbolicName,
String versionRange)
bundleSymbolicName - bundle symbolic nameversionRange - version range in the String format
public static Content parseContent(String contentName,
ManifestHeaderProcessor.NameValueMap<String,String> nameValueMap)
contentName - The content namenameValueMap - The map containing the content attributes/directives
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||