Class OsgiManifest


  • public class OsgiManifest
    extends java.lang.Object
    Convenience wrapper around Headers and ManifestElement which adds typed getters and value caching for commonly used headers. This is a read-only API.
    • Field Detail

      • location

        private java.lang.String location
      • headers

        private org.eclipse.osgi.framework.util.Headers<java.lang.String,​java.lang.String> headers
      • bundleSymbolicName

        private java.lang.String bundleSymbolicName
      • bundleVersion

        private java.lang.String bundleVersion
      • bundleClassPath

        private java.lang.String[] bundleClassPath
      • isDirectoryShape

        private boolean isDirectoryShape
    • Method Detail

      • parseBundleVersion

        private java.lang.String parseBundleVersion()
      • parseDirectoryShape

        private boolean parseDirectoryShape()
      • getHeaders

        public org.eclipse.osgi.framework.util.Headers<java.lang.String,​java.lang.String> getHeaders()
      • getValue

        public java.lang.String getValue​(java.lang.String key)
      • getBundleSymbolicName

        public java.lang.String getBundleSymbolicName()
      • getBundleVersion

        public java.lang.String getBundleVersion()
      • toArtifactKey

        public ArtifactKey toArtifactKey()
        Returns the bundle's key in the Eclipse artifact coordinate system.
      • getBundleClasspath

        public java.lang.String[] getBundleClasspath()
      • 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/
      • parseHeader

        private org.eclipse.osgi.util.ManifestElement[] parseHeader​(java.lang.String key)
      • parseBundleClasspath

        private java.lang.String[] parseBundleClasspath()