All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.wizards.registry.ComponentDescription

java.lang.Object
   |
   +----com.sun.wizards.registry.ComponentDescription

public class ComponentDescription
extends Object
implements Serializable, Cloneable

Constructor Index

 o ComponentDescription()
Creates a new install description.
 o ComponentDescription(String)
Creates a new component description with the specified GUID.

Method Index

 o addDependentComponent(String, String, String)
 o addRequiredComponent(String, String, String)
 o containsDependentComponent(String, String, String)
 o containsRequiredComponent(String, String, String)
 o copy()
 o getBackwardCompatibleList()
Returns a list of versions this component is backward compatible with.
 o getData()
Returns application-specific data.
 o getData(String)
Returns an application-specific data value.
 o getDependentComponents()
Returns a representation of the components that depend upon this component.
 o getDependentComponents(RegistryService)
Get the ComponentDescription objects representing all components that depend upon this component.
 o getFederatedName()
Returns this component's federated name.
 o getGUID()
Returns the guid representing this component.
 o getInstallLocation()
Returns the install directory of this component.
 o getInstance()
Returns the instance id of this component.
 o getName()
Returns this component's name.
 o getRequiredComponents()
Returns a representation of the components that require this component.
 o getRequiredComponents(RegistryService)
Get the ComponentDescription objects representing all components that this component requires.
 o getUninstaller()
Returns the command used to uninstall this component.
 o getVersion()
Returns this component's version string.
 o isValidDescription()
Returns true if this ComponentDescription contains enough information to completely describe the component.
 o removeDependentComponent(ComponentDescription)
 o setBackwardCompatibleList(String)
Sets the list of versions this component is backward compatible with.
 o setData(String, Object)
Sets an application-specific key/value pair.
 o setDependentComponents(Hashtable)
Sets the list of components that require this component.
 o setFederatedName(String)
Sets this component's federated name.
 o setGUID(String)
Sets the GUID representing this component.
 o setInstallLocation(String)
Sets the install directory of this component.
 o setInstance(int)
Sets the instance id of this component.
 o setName(String)
Sets the name of this component.
 o setRequiredComponents(Hashtable)
Sets the list of components that this component requires.
 o setUninstaller(String)
Sets the command used to uninstall this component.
 o setVersion(String)
Sets this component's version string.
 o toString()
Converts this ComponentDescription to a string.

Constructors

 o ComponentDescription
 public ComponentDescription()
Creates a new install description.

 o ComponentDescription
 public ComponentDescription(String guid)
Creates a new component description with the specified GUID.

Parameters:
guid - The Global Unique Identifier that specifies this component.

Methods

 o getGUID
 public String getGUID()
Returns the guid representing this component.

Returns:
The Global Unique Identifier.
 o setGUID
 public void setGUID(String guid)
Sets the GUID representing this component.

Parameters:
guid - The Global Unique Identifier that specifies this component.
 o getFederatedName
 public String getFederatedName()
Returns this component's federated name.

Returns:
The federated name of this component.
 o setFederatedName
 public void setFederatedName(String federatedName)
Sets this component's federated name.

Parameters:
federatedName - The abbreviated form of the component name.
 o getVersion
 public String getVersion()
Returns this component's version string.

Returns:
The version string.
 o setVersion
 public void setVersion(String version)
Sets this component's version string.

Parameters:
version - The version string of this component.
 o getInstance
 public int getInstance()
Returns the instance id of this component.

 o setInstance
 public void setInstance(int instance)
Sets the instance id of this component.

 o getName
 public String getName()
Returns this component's name.

Returns:
The name of this component.
 o setName
 public void setName(String name)
Sets the name of this component.

Parameters:
name - The name of this component.
 o getInstallLocation
 public String getInstallLocation()
Returns the install directory of this component.

Returns:
The install directory.
 o setInstallLocation
 public void setInstallLocation(String installLocation)
Sets the install directory of this component.

Parameters:
installLocation - The directory this component is installed in.
 o getUninstaller
 public String getUninstaller()
Returns the command used to uninstall this component.

Returns:
The uninstall command.
 o setUninstaller
 public void setUninstaller(String uninstaller)
Sets the command used to uninstall this component.

Parameters:
uninstaller - The uninstall command.
 o getDependentComponents
 public Hashtable getDependentComponents()
Returns a representation of the components that depend upon this component.

Returns:
The components that depend upon this one.
 o setDependentComponents
 public void setDependentComponents(Hashtable dependentComponents)
Sets the list of components that require this component. The format of the hashtable should be: guid:instance version

 o addDependentComponent
 public void addDependentComponent(String guid,
                                   String instance,
                                   String version)
 o getRequiredComponents
 public Hashtable getRequiredComponents()
Returns a representation of the components that require this component.

Returns:
The components that require this component.
 o setRequiredComponents
 public void setRequiredComponents(Hashtable requiredComponents)
Sets the list of components that this component requires.

Parameters:
requiredComponents - The list of components depending on this component.
 o addRequiredComponent
 public void addRequiredComponent(String guid,
                                  String instance,
                                  String version)
 o removeDependentComponent
 public void removeDependentComponent(ComponentDescription component)
 o containsDependentComponent
 public boolean containsDependentComponent(String guid,
                                           String instance,
                                           String version)
 o containsRequiredComponent
 public boolean containsRequiredComponent(String guid,
                                          String instance,
                                          String version)
 o getBackwardCompatibleList
 public String getBackwardCompatibleList()
Returns a list of versions this component is backward compatible with.

 o setBackwardCompatibleList
 public void setBackwardCompatibleList(String backwardCompatible)
Sets the list of versions this component is backward compatible with.

 o getData
 public Hashtable getData()
Returns application-specific data.

 o getData
 public Object getData(String key)
Returns an application-specific data value.

 o setData
 public void setData(String key,
                     Object value)
Sets an application-specific key/value pair.

 o isValidDescription
 public boolean isValidDescription()
Returns true if this ComponentDescription contains enough information to completely describe the component.

 o toString
 public String toString()
Converts this ComponentDescription to a string.

Overrides:
toString in class Object
 o getDependentComponents
 public Enumeration getDependentComponents(RegistryService registry)
Get the ComponentDescription objects representing all components that depend upon this component.

 o getRequiredComponents
 public Enumeration getRequiredComponents(RegistryService registry)
Get the ComponentDescription objects representing all components that this component requires.

 o copy
 public ComponentDescription copy()

All Packages  Class Hierarchy  This Package  Previous  Next  Index