com.metamatrix.console.ui.views.deploy.model
Class ConfigurationTreeModel.PscWrapper

java.lang.Object
  extended by com.metamatrix.console.ui.views.deploy.model.ConfigurationTreeModel.PscWrapper
Enclosing class:
ConfigurationTreeModel

public class ConfigurationTreeModel.PscWrapper
extends java.lang.Object

The PscWrapper class wraps a ProductServiceConfig so that PSC definitions and deployed PSCs can be distinguished.


Constructor Summary
ConfigurationTreeModel.PscWrapper(ProductServiceConfig thePsc, Configuration theConfig)
          Constructs a PscWrapper that wraps a PSC definition.
ConfigurationTreeModel.PscWrapper(ProductServiceConfig thePsc, VMComponentDefn theProcess)
          Constructs a PscWrapper that wraps a deployed PSC.
 
Method Summary
 boolean equals(java.lang.Object theObject)
          Indicates if the given input parameter is equal to this object.
 Configuration getConfig()
          Gets the associated configuration.
 VMComponentDefn getProcess()
          Gets the associated process.
 ProductServiceConfig getPsc()
          Gets the wrapped PSC object.
 int hashCode()
          Gets a hash code value.
 boolean isDefinition()
          Indicates if this object wraps a PSC definition.
 boolean isDeployed()
          Indicates if this object wraps a deployed PSC.
 java.lang.String toString()
          Gets this object's string representation which is it's associated ProductServiceConfig's toString.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationTreeModel.PscWrapper

public ConfigurationTreeModel.PscWrapper(ProductServiceConfig thePsc,
                                         VMComponentDefn theProcess)
Constructs a PscWrapper that wraps a deployed PSC.

Parameters:
thePsc - the user object of the deployed PSC
theProcess - the user object of the deployed PSC's process

ConfigurationTreeModel.PscWrapper

public ConfigurationTreeModel.PscWrapper(ProductServiceConfig thePsc,
                                         Configuration theConfig)
Constructs a PscWrapper that wraps a PSC definition.

Parameters:
thePsc - the user object of the deployed PSC
theConfig - the user object of the deployed PSC's configuration
Method Detail

equals

public boolean equals(java.lang.Object theObject)
Indicates if the given input parameter is equal to this object.

Overrides:
equals in class java.lang.Object
Parameters:
theObject - the object being compared
Returns:
true if equal; false otherwise.

getConfig

public Configuration getConfig()
Gets the associated configuration. Only used if wrapping a PSC definition.

Returns:
the associated configuration of the PSC definition or null if wrapping a deployed PSC.

getProcess

public VMComponentDefn getProcess()
Gets the associated process. Only used if wrapping a deployed PSC.

Returns:
the associated process of the deployed PSC or null if wrapping a PSC definition.

getPsc

public ProductServiceConfig getPsc()
Gets the wrapped PSC object.

Returns:
the wrapped PSC object

isDefinition

public boolean isDefinition()
Indicates if this object wraps a PSC definition.

Returns:
true if this object wraps a PSC definition; false otherwise.

isDeployed

public boolean isDeployed()
Indicates if this object wraps a deployed PSC.

Returns:
true if this object wraps a deployed PSC; false otherwise.

hashCode

public int hashCode()
Gets a hash code value.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value

toString

public java.lang.String toString()
Gets this object's string representation which is it's associated ProductServiceConfig's toString.

Overrides:
toString in class java.lang.Object
Returns:
the string representation


Copyright © 2009. All Rights Reserved.