public class ManifestUtils extends Object
Parser and
Clause| Modifier and Type | Method and Description |
|---|---|
static String |
getBsn(Manifest manifest) |
static List<org.apache.felix.utils.manifest.Clause> |
getExports(Manifest manifest)
Get the list of exports from the manifest.
|
static String |
getHeader(String name,
Manifest manifest) |
static List<org.apache.felix.utils.manifest.Clause> |
getImports(Manifest manifest)
Get the list of imports from the manifest.
|
static List<org.apache.felix.utils.manifest.Clause> |
getMandatoryImports(Manifest manifest)
Get the list of non-optional imports from the manifest.
|
static org.apache.felix.utils.version.VersionRange |
getVersionRange(org.apache.felix.utils.manifest.Clause clause) |
static boolean |
isBundle(Manifest manifest)
Check if the manifest contains the mandatory Bundle-Symbolic-Name
|
static boolean |
isOptional(org.apache.felix.utils.manifest.Clause clause)
Check if a given manifest clause represents an optional import
|
static boolean |
matches(org.apache.felix.utils.manifest.Clause requirement,
org.apache.felix.utils.manifest.Clause export) |
public static List<org.apache.felix.utils.manifest.Clause> getImports(Manifest manifest)
manifest - the manifestpublic static List<org.apache.felix.utils.manifest.Clause> getMandatoryImports(Manifest manifest)
manifest - the manifestpublic static List<org.apache.felix.utils.manifest.Clause> getExports(Manifest manifest)
manifest - the manifestpublic static boolean isOptional(org.apache.felix.utils.manifest.Clause clause)
clause - the manifest clausetrue for an optional import, false for mandatory importspublic static boolean isBundle(Manifest manifest)
manifest - the manifesttrue if the manifest specifies a Bundle-Symbolic-Namepublic static boolean matches(org.apache.felix.utils.manifest.Clause requirement,
org.apache.felix.utils.manifest.Clause export)
public static org.apache.felix.utils.version.VersionRange getVersionRange(org.apache.felix.utils.manifest.Clause clause)
Copyright © 2007-2015 FuseSource, Corp.. All Rights Reserved.