com.metamatrix.common.config.model
Class BasicProductType

java.lang.Object
  extended by com.metamatrix.common.namedobject.BasicObject
      extended by com.metamatrix.common.config.model.BasicComponentType
          extended by com.metamatrix.common.config.model.BasicProductType
All Implemented Interfaces:
ComponentType, ProductType, BaseObject, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class BasicProductType
extends BasicComponentType
implements ProductType, java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.metamatrix.common.config.model.BasicComponentType
serialVersionUID
 
Fields inherited from interface com.metamatrix.common.config.api.ProductType
COMPONENT_TYPE_NAME, PRODUCT_SUPER_TYPE_ID, PRODUCT_TYPE_ID
 
Fields inherited from interface com.metamatrix.common.config.api.ComponentType
AUTHPROVIDER_COMPONENT_TYPE_CODE, CONFIGURATION_COMPONENT_TYPE_CODE, CONNECTOR_COMPONENT_TYPE_CODE, DEPLOYED_COMPONENT_TYPE_CODE, HOST_COMPONENT_TYPE_CODE, PRODUCT_COMPONENT_TYPE_CODE, PSC_COMPONENT_TYPE_CODE, RESOURCE_COMPONENT_TYPE_CODE, SERVICE_COMPONENT_TYPE_CODE, VM_COMPONENT_TYPE_CODE
 
Constructor Summary
protected BasicProductType(BasicProductType component)
           
  BasicProductType(ComponentTypeID id, ComponentTypeID parentID, ComponentTypeID superID, boolean deployable, boolean deprecated, boolean monitored)
           
 
Method Summary
 java.lang.Object clone()
          Return a deep cloned instance of this object.
 boolean contains(ComponentTypeID componentTypeID)
          Returns true if thie component type is contained in this instance of the product type.
 java.util.Collection getComponentTypeIDs()
          Returns a cloned Collection of ComponentTypeID objects, each representing a type of service that this Product is comprised of
 
Methods inherited from class com.metamatrix.common.config.model.BasicComponentType
accept, addComponentTypeDefinition, getComponentTypeCode, getComponentTypeDefinition, getComponentTypeDefinitions, getCreatedBy, getCreatedDate, getCreatedDateString, getDefaultPropertyValues, getDefaultValue, getDescription, getLastChangedBy, getLastChangedDate, getLastChangedDateString, getMaskedPropertyNames, getParentComponentTypeID, getSuperComponentTypeID, isDeployable, isDeprecated, isMonitored, isOfConnectorProductType, isOfTypeConnector, isOfTypeXAConnector, removeComponentTypeDefinition, setComponentTypeCode, setComponentTypeDefinitions, setCreatedBy, setCreatedDate, setDescription, setIsDeprecated, setLastChangedBy, setLastChangedDate, setParentComponentTypeID, setSuperComponentTypeID
 
Methods inherited from class com.metamatrix.common.namedobject.BasicObject
compareTo, equals, getFullName, getID, getName, hashCode, setID, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.metamatrix.common.config.api.ComponentType
accept, getComponentTypeCode, getComponentTypeDefinition, getComponentTypeDefinitions, getCreatedBy, getCreatedDate, getDefaultPropertyValues, getDefaultValue, getDescription, getLastChangedBy, getLastChangedDate, getMaskedPropertyNames, getParentComponentTypeID, getSuperComponentTypeID, isDeployable, isDeprecated, isMonitored, isOfConnectorProductType, isOfTypeConnector, isOfTypeXAConnector
 
Methods inherited from interface com.metamatrix.common.namedobject.BaseObject
getFullName, getID, getName
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

BasicProductType

public BasicProductType(ComponentTypeID id,
                        ComponentTypeID parentID,
                        ComponentTypeID superID,
                        boolean deployable,
                        boolean deprecated,
                        boolean monitored)

BasicProductType

protected BasicProductType(BasicProductType component)
Method Detail

getComponentTypeIDs

public java.util.Collection getComponentTypeIDs()
Returns a cloned Collection of ComponentTypeID objects, each representing a type of service that this Product is comprised of

Specified by:
getComponentTypeIDs in interface ProductType
Returns:
Collection of ComponentTypeID objects

contains

public boolean contains(ComponentTypeID componentTypeID)
Description copied from interface: ProductType
Returns true if thie component type is contained in this instance of the product type.

Specified by:
contains in interface ProductType
Parameters:
componentTypeID - is the id of the component type to check for.
Returns:
boolean is true if the component type is contained in the product type

clone

public java.lang.Object clone()
Return a deep cloned instance of this object. Subclasses must override this method.

Specified by:
clone in interface BaseObject
Overrides:
clone in class BasicComponentType
Returns:
the object that is the clone of this instance.


Copyright © 2009. All Rights Reserved.