Class ExtensionPoint


  • public class ExtensionPoint
    extends java.lang.Object
    Extension Point declared in a plug-in. Represents the XML declaration.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Extension[] extensions
      Extensions *
      private java.lang.String id
      unique id *
      private java.lang.String name
      user friendly name *
      private Bundle plugin
      declared plugin *
      private java.net.URL schema
      path to schema (xsd) file *
    • Constructor Summary

      Constructors 
      Constructor Description
      ExtensionPoint​(java.lang.String id, java.lang.String name, java.net.URL schema, Bundle plugin)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addExtension​(Extension extension)  
      Bundle getBundle()
      Accessor for the Plug-in that declared this ExtensionPoint
      Extension[] getExtensions()  
      java.lang.String getId()
      Accessor for the id of this ExtensionPoint
      java.lang.String getName()
      Accessor for a user friendly name
      java.net.URL getSchema()
      Accessor to the URL that points to the schema (.xsd) file
      java.lang.String getUniqueId()
      Accessor for the pluginId + DOT + id.
      void sortExtensions​(java.util.Comparator<Extension> comp)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • id

        private final java.lang.String id
        unique id *
      • name

        private final java.lang.String name
        user friendly name *
      • schema

        private final java.net.URL schema
        path to schema (xsd) file *
      • plugin

        private final Bundle plugin
        declared plugin *
      • extensions

        private Extension[] extensions
        Extensions *
    • Constructor Detail

      • ExtensionPoint

        public ExtensionPoint​(java.lang.String id,
                              java.lang.String name,
                              java.net.URL schema,
                              Bundle plugin)
        Constructor
        Parameters:
        id - the unique id
        name - the friendly name
        schema - the path to the schema file
        plugin - the declared plugin
    • Method Detail

      • getExtensions

        public Extension[] getExtensions()
      • sortExtensions

        public void sortExtensions​(java.util.Comparator<Extension> comp)
      • addExtension

        public void addExtension​(Extension extension)
      • getId

        public java.lang.String getId()
        Accessor for the id of this ExtensionPoint
        Returns:
        the id (relative id)
      • getUniqueId

        public java.lang.String getUniqueId()
        Accessor for the pluginId + DOT + id.
        Returns:
        the absolute id (unique id)
      • getName

        public java.lang.String getName()
        Accessor for a user friendly name
        Returns:
        the ExtentionPoint name
      • getSchema

        public java.net.URL getSchema()
        Accessor to the URL that points to the schema (.xsd) file
        Returns:
        the schema URL
      • getBundle

        public Bundle getBundle()
        Accessor for the Plug-in that declared this ExtensionPoint
        Returns:
        the Plug-in