Class Bundle


  • public class Bundle
    extends java.lang.Object
    A Plug-in (OSGi Bundle) definition. Represents the XML declaration.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.net.URL manifestLocation
      location of the manifest.mf file *
      private java.lang.String name
      name *
      private java.util.List<Bundle.BundleDescription> requireBundle
      Set of BundleDescription objects representing Require-Bundle entries
      private java.lang.String symbolicName
      unique id - bundle symbolic name *
      private java.lang.String vendorName
      vendor name *
      private java.lang.String version
      plugin version *
    • Constructor Summary

      Constructors 
      Constructor Description
      Bundle​(java.lang.String symbolicName, java.lang.String name, java.lang.String vendorName, java.lang.String version, java.net.URL manifestLocation)
      Constructor
    • Field Detail

      • symbolicName

        private final java.lang.String symbolicName
        unique id - bundle symbolic name *
      • vendorName

        private final java.lang.String vendorName
        vendor name *
      • name

        private final java.lang.String name
        name *
      • version

        private final java.lang.String version
        plugin version *
      • manifestLocation

        private final java.net.URL manifestLocation
        location of the manifest.mf file *
      • requireBundle

        private java.util.List<Bundle.BundleDescription> requireBundle
        Set of BundleDescription objects representing Require-Bundle entries
    • Constructor Detail

      • Bundle

        public Bundle​(java.lang.String symbolicName,
                      java.lang.String name,
                      java.lang.String vendorName,
                      java.lang.String version,
                      java.net.URL manifestLocation)
        Constructor
        Parameters:
        symbolicName - the unique id - bundle symbolic name
        name - the name
        vendorName - the vendor name
        version - the version number
        manifestLocation - the path to the declaration file
    • Method Detail

      • getSymbolicName

        public java.lang.String getSymbolicName()
        Accessor for the plug-in id - bundle symbolic name
        Returns:
        id of the plug-in
      • getVendorName

        public java.lang.String getVendorName()
        Accessor for the provider name of this plug-in
        Returns:
        provider name
      • getVersion

        public java.lang.String getVersion()
        Acessor for the version of this plug-in
        Returns:
        version
      • getManifestLocation

        public java.net.URL getManifestLocation()
        Acessor for the location of the manifest.mf file
        Returns:
        the manifest.mf location
      • getName

        public java.lang.String getName()
        Acessor for the plug-in name
        Returns:
        plug-in name
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object