org.apache.felix.framework.util.manifestparser
Class ManifestParser
java.lang.Object
org.apache.felix.framework.util.manifestparser.ManifestParser
public class ManifestParser
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLAUSE_PATHS_INDEX
public static final int CLAUSE_PATHS_INDEX
- See Also:
- Constant Field Values
CLAUSE_DIRECTIVES_INDEX
public static final int CLAUSE_DIRECTIVES_INDEX
- See Also:
- Constant Field Values
CLAUSE_ATTRIBUTES_INDEX
public static final int CLAUSE_ATTRIBUTES_INDEX
- See Also:
- Constant Field Values
ManifestParser
public ManifestParser(Logger logger,
Map configMap,
Map headerMap)
throws BundleException
- Throws:
BundleException
getManifestVersion
public String getManifestVersion()
getSymbolicName
public String getSymbolicName()
getBundleVersion
public Version getBundleVersion()
getCapabilities
public ICapability[] getCapabilities()
getRequirements
public IRequirement[] getRequirements()
getDynamicRequirements
public IRequirement[] getDynamicRequirements()
getLibraryClauses
public R4LibraryClause[] getLibraryClauses()
getLibraries
public R4Library[] getLibraries()
throws BundleException
This method returns the selected native library metadata from
the manifest. The information is not the raw metadata from the
manifest, but is native library metadata clause selected according
to the OSGi native library clause selection policy. The metadata
returned by this method will be attached directly to a module and
used for finding its native libraries at run time. To inspect the
raw native library metadata refer to getLibraryClauses().
- Returns:
- an array of selected library metadata objects from the manifest.
- Throws:
BundleException
- if any problems arise.
parseBundleSymbolicName
public static ICapability parseBundleSymbolicName(Map headerMap)
throws BundleException
- Throws:
BundleException
parseExportHeader
public static ICapability[] parseExportHeader(String header)
parseImportHeader
public static IRequirement[] parseImportHeader(String header)
parseRequireBundleHeader
public static IRequirement[] parseRequireBundleHeader(String header)
parseExtensionBundleHeader
public static R4Directive parseExtensionBundleHeader(String header)
parseStandardHeader
public static Object[][][] parseStandardHeader(String header)
parseStandardHeaderClause
public static Object[][] parseStandardHeaderClause(String clauseString)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
parseDelimitedString
public static String[] parseDelimitedString(String value,
String delim)
- Parses delimited string and returns an array containing the tokens. This
parser obeys quotes, so the delimiter character will be ignored if it is
inside of a quote. This method assumes that the quote character is not
included in the set of delimiter characters.
- Parameters:
value
- the delimited string to parse.delim
- the characters delimiting the tokens.
- Returns:
- an array of string tokens or null if there were no tokens.
parseLibraryStrings
public static R4LibraryClause[] parseLibraryStrings(Logger logger,
String[] libStrs)
throws IllegalArgumentException
- Parses native code manifest headers.
- Parameters:
libStrs
- an array of native library manifest header
strings from the bundle manifest.
- Returns:
- an array of LibraryInfo objects for the
passed in strings.
- Throws:
IllegalArgumentException
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.