net.sf.ant4eclipse.model.pdesupport.plugin
Class RequiredPlugin

java.lang.Object
  extended by net.sf.ant4eclipse.model.pdesupport.plugin.RequiredPlugin

public class RequiredPlugin
extends java.lang.Object

Encapsulates a required plugin in a plugin description ('MANIFEST.MF' or 'plugin.xml').


Field Summary
static java.lang.String MANDATORY
          MANDATORY
static java.lang.String OPTIONAL
          OPTIONAL
static java.lang.String PRIVATE
          PRIVATE
static java.lang.String REEXPORT
          REEXPORT
 
Constructor Summary
RequiredPlugin(java.lang.String symbolicName, java.lang.String visibility, java.lang.String resolution, java.lang.String versionRange)
          Creates a new instance of type RequiredPlugin.
 
Method Summary
 VersionRange getBundleVersion()
          Returns the version range of the required plugin.
 java.lang.String getResolution()
          Returns the resolution of the plugin.
 java.lang.String getSymbolicName()
          Returns the symbolic name of the plugin.
 java.lang.String getVisibility()
          Returns the visibility of the plugin.
 boolean hasBundleVersion()
          Returns whether or not a bundle version is set.
 boolean isOptional()
          Returns whether this plugin is optional or not.
 boolean isReexported()
          Returns whether this plugin is reexported or not.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REEXPORT

public static java.lang.String REEXPORT
REEXPORT


PRIVATE

public static java.lang.String PRIVATE
PRIVATE


MANDATORY

public static java.lang.String MANDATORY
MANDATORY


OPTIONAL

public static java.lang.String OPTIONAL
OPTIONAL

Constructor Detail

RequiredPlugin

public RequiredPlugin(java.lang.String symbolicName,
                      java.lang.String visibility,
                      java.lang.String resolution,
                      java.lang.String versionRange)
Creates a new instance of type RequiredPlugin.

Parameters:
symbolicName - the symbolic name of the required plugin.
visibility - the (optional) visibility of the required plugin ('reexport' or 'private').
resolution - the (optional) resolution of the required plugin ('mandatory' or 'optional').
versionRange - the (optional) version range of the required plugin
Method Detail

getSymbolicName

public java.lang.String getSymbolicName()
Returns the symbolic name of the plugin.

Returns:
the symbolic name of the plugin.

getResolution

public java.lang.String getResolution()
Returns the resolution of the plugin.

Returns:
the resolution of the plugin.

getVisibility

public java.lang.String getVisibility()
Returns the visibility of the plugin.

Returns:
the visibility of the plugin.

getBundleVersion

public VersionRange getBundleVersion()
Returns the version range of the required plugin.

Returns:
the version range of the required plugin.

hasBundleVersion

public boolean hasBundleVersion()
Returns whether or not a bundle version is set.

Returns:
true if a bundle version is set, false otherwise.

isReexported

public boolean isReexported()
Returns whether this plugin is reexported or not.

Returns:
whether this plugin is reexported or not.

isOptional

public boolean isOptional()
Returns whether this plugin is optional or not.

Returns:
whether this plugin is optional or not.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object