|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.common.config.model.ConfigurationModelContainerImpl
public class ConfigurationModelContainerImpl
Constructor Summary | |
---|---|
ConfigurationModelContainerImpl()
|
|
ConfigurationModelContainerImpl(java.util.ArrayList configObjects)
|
|
ConfigurationModelContainerImpl(java.util.Collection configObjects)
|
|
ConfigurationModelContainerImpl(Configuration config)
|
Method Summary | |
---|---|
void |
addComponentType(ComponentType type)
NOTE: The following 2 methods are provided here because the editor does not interact with the ConfiguratonModelContainer. |
void |
addObject(java.lang.Object obj)
|
void |
addObjects(java.util.Collection objects)
|
void |
addResource(SharedResource rd)
|
java.lang.Object |
clone()
|
java.util.Collection |
getAllComponentTypeDefinitions(ComponentTypeID typeID)
Return a collection of the ComponentTypeDefinition |
java.util.Collection |
getAllObjects()
Return all the objects that make up this model. |
ComponentType |
getComponentType(java.lang.String fullName)
Return the ComponentType for the specified name |
ComponentTypeDefn |
getComponentTypeDefinition(ComponentTypeID typeID,
java.lang.String defnName)
Return a ComponentTypeDefn for a give typeID and defnName. |
java.util.Map |
getComponentTypes()
Return a map of the component types. |
Configuration |
getConfiguration()
|
ConfigurationID |
getConfigurationID()
|
java.util.Collection |
getConnectionPools()
Return a collection of objects of type ResourceDescriptor . |
java.util.Properties |
getDefaultPropertyValues(ComponentTypeID componentTypeID)
Return a properties object that contains the default properties defined for the specified component type |
java.util.Properties |
getDefaultPropertyValues(java.util.Properties defaultProperties,
ComponentTypeID componentTypeID)
|
Host |
getHost(java.lang.String fullName)
Return a host based on the host name. |
java.util.Collection |
getHosts()
Return a collection of objects of type Host . |
SharedResource |
getResource(java.lang.String resourceName)
Return a ProductType based on the specified name. |
java.util.Collection |
getResources()
|
boolean |
isConfigurationModel()
Method indicates if this configuration model was loaded with a complete configuration or not. |
void |
remove(BaseID objID)
|
void |
setComponentTypes(java.util.Map newCompTypes)
|
void |
setConfigurationObjects(java.util.Collection objects)
Method used when the XMLConfiguration is initialized for the first time. |
void |
setResources(java.util.Collection theResources)
|
void |
setResources(java.util.Map theResources)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationModelContainerImpl()
public ConfigurationModelContainerImpl(java.util.ArrayList configObjects) throws ConfigurationException
ConfigurationException
public ConfigurationModelContainerImpl(java.util.Collection configObjects) throws ConfigurationException
ConfigurationException
public ConfigurationModelContainerImpl(Configuration config)
Method Detail |
---|
public Configuration getConfiguration()
getConfiguration
in interface ConfigurationModelContainer
public boolean isConfigurationModel()
public ConfigurationID getConfigurationID()
getConfigurationID
in interface ConfigurationModelContainer
public java.util.Collection getAllObjects()
ConfigurationModelContainer
getAllObjects
in interface ConfigurationModelContainer
public java.util.Map getComponentTypes()
ConfigurationModelContainer
getComponentTypes
in interface ConfigurationModelContainer
public ComponentTypeDefn getComponentTypeDefinition(ComponentTypeID typeID, java.lang.String defnName)
ComponentTypeDefn
for a give typeID and defnName.
getComponentTypeDefinition
in interface ConfigurationModelContainer
typeID
- identifies the specific @link ComponentType to look fordefnName
- idenfities the @link ComponentTypeDefn to look for
in the componentType.
public java.util.Collection getAllComponentTypeDefinitions(ComponentTypeID typeID)
ConfigurationModelContainer
ComponentTypeDefinitions for
the request component type
- Specified by:
getAllComponentTypeDefinitions
in interface ConfigurationModelContainer
- Returns:
- Collection of ComponentTypeDefinitions
public ComponentType getComponentType(java.lang.String fullName)
ConfigurationModelContainer
getComponentType
in interface ConfigurationModelContainer
public java.util.Properties getDefaultPropertyValues(ComponentTypeID componentTypeID)
ConfigurationModelContainer
getDefaultPropertyValues
in interface ConfigurationModelContainer
public java.util.Properties getDefaultPropertyValues(java.util.Properties defaultProperties, ComponentTypeID componentTypeID)
getDefaultPropertyValues
in interface ConfigurationModelContainer
public java.util.Collection getHosts()
ConfigurationModelContainer
Host
.
These are all the hosts defined in this configuration.
getHosts
in interface ConfigurationModelContainer
public Host getHost(java.lang.String fullName)
ConfigurationModelContainer
getHost
in interface ConfigurationModelContainer
public java.util.Collection getConnectionPools()
ConfigurationModelContainer
ResourceDescriptor
.
These are all the hosts defined in this configuration.
getConnectionPools
in interface ConfigurationModelContainer
public SharedResource getResource(java.lang.String resourceName)
ConfigurationModelContainer
ProductType
based on the specified name.
getResource
in interface ConfigurationModelContainer
public java.util.Collection getResources()
getResources
in interface ConfigurationModelContainer
public void setComponentTypes(java.util.Map newCompTypes)
public void setResources(java.util.Map theResources)
public void setResources(java.util.Collection theResources)
public void addComponentType(ComponentType type)
public void addResource(SharedResource rd)
public void addObjects(java.util.Collection objects) throws ConfigurationException
ConfigurationException
public void addObject(java.lang.Object obj) throws ConfigurationException
ConfigurationException
public void setConfigurationObjects(java.util.Collection objects) throws ConfigurationException
ConfigurationException
public void remove(BaseID objID) throws ConfigurationException
ConfigurationException
public java.lang.Object clone()
clone
in interface ConfigurationModelContainer
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |