|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.karaf.tooling.features.ManifestUtils
public class ManifestUtils
A set of utility methods to ease working with Parser
and
Clause
Method Summary | |
---|---|
static java.lang.String |
getBsn(java.util.jar.Manifest manifest)
|
static java.util.List<org.apache.felix.utils.manifest.Clause> |
getExports(java.util.jar.Manifest manifest)
Get the list of exports from the manifest. |
static java.lang.String |
getHeader(java.lang.String name,
java.util.jar.Manifest manifest)
|
static java.util.List<org.apache.felix.utils.manifest.Clause> |
getImports(java.util.jar.Manifest manifest)
Get the list of imports from the manifest. |
static java.util.List<org.apache.felix.utils.manifest.Clause> |
getMandatoryImports(java.util.jar.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(java.util.jar.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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.List<org.apache.felix.utils.manifest.Clause> getImports(java.util.jar.Manifest manifest)
manifest
- the manifest
public static java.util.List<org.apache.felix.utils.manifest.Clause> getMandatoryImports(java.util.jar.Manifest manifest)
manifest
- the manifest
public static java.util.List<org.apache.felix.utils.manifest.Clause> getExports(java.util.jar.Manifest manifest)
manifest
- the manifest
public static boolean isOptional(org.apache.felix.utils.manifest.Clause clause)
clause
- the manifest clause
true
for an optional import, false
for mandatory importspublic static boolean isBundle(java.util.jar.Manifest manifest)
manifest
- the manifest
true
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 java.lang.String getHeader(java.lang.String name, java.util.jar.Manifest manifest)
public static java.lang.String getBsn(java.util.jar.Manifest manifest)
public static org.apache.felix.utils.version.VersionRange getVersionRange(org.apache.felix.utils.manifest.Clause clause)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |