Package org.eclipse.tycho.core.osgitools
Class OsgiManifest
- java.lang.Object
-
- org.eclipse.tycho.core.osgitools.OsgiManifest
-
public class OsgiManifest extends Object
Convenience wrapper aroundHeaders
andManifestElement
which adds typed getters and value caching for commonly used headers. This is a read-only API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getBundleClasspath()
String
getBundleSymbolicName()
String
getBundleVersion()
StandardExecutionEnvironment[]
getExecutionEnvironments()
org.eclipse.osgi.framework.util.Headers<String,String>
getHeaders()
org.eclipse.osgi.util.ManifestElement[]
getManifestElements(String key)
String
getValue(String key)
boolean
isDirectoryShape()
Returns true if Eclipse-BundleShape header is set to dir.ArtifactKey
toArtifactKey()
Returns the bundle's key in the Eclipse artifact coordinate system.
-
-
-
Method Detail
-
getBundleSymbolicName
public String getBundleSymbolicName()
-
getBundleVersion
public String getBundleVersion()
-
toArtifactKey
public ArtifactKey toArtifactKey()
Returns the bundle's key in the Eclipse artifact coordinate system.
-
getBundleClasspath
public String[] getBundleClasspath()
-
getExecutionEnvironments
public StandardExecutionEnvironment[] getExecutionEnvironments()
-
isDirectoryShape
public boolean isDirectoryShape()
Returns true if Eclipse-BundleShape header is set to dir. http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/ bundle_manifest.html http://eclipsesource.com/blogs/2009/01/20/tip-eclipse-bundleshape/
-
getManifestElements
public org.eclipse.osgi.util.ManifestElement[] getManifestElements(String key) throws OsgiManifestParserException
- Throws:
OsgiManifestParserException
-
-