org.rhq.core.domain.configuration.definition
Class ConfigurationTemplate

java.lang.Object
  extended by org.rhq.core.domain.configuration.definition.ConfigurationTemplate
All Implemented Interfaces:
Serializable

public class ConfigurationTemplate
extends Object
implements Serializable

This object represents a single template of configuration values for a given definition. Definitions may have many templates. E.g. the Datasource resource definition could have templates for an oracle server and a postgres server. The templates are one-to-one linked to a Configuration which holds the values for the properties of that template.

See Also:
Serialized Form

Field Summary
static String DEFAULT_TEMPLATE_NAME
           
 
Constructor Summary
protected ConfigurationTemplate()
           
  ConfigurationTemplate(String name, String description)
           
 
Method Summary
 Configuration createConfiguration()
           
 Configuration getConfiguration()
           
 ConfigurationDefinition getConfigurationDefinition()
           
 String getDescription()
           
 int getId()
           
 String getName()
           
 boolean isDefault()
           
 void setConfiguration(Configuration configuration)
           
 void setConfigurationDefinition(ConfigurationDefinition configurationDefinition)
           
 void setDefault(boolean isDefault)
           
 void setDescription(String description)
           
 void setId(int id)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_TEMPLATE_NAME

public static final String DEFAULT_TEMPLATE_NAME
See Also:
Constant Field Values
Constructor Detail

ConfigurationTemplate

protected ConfigurationTemplate()

ConfigurationTemplate

public ConfigurationTemplate(@NotNull
                             String name,
                             @Nullable
                             String description)
Method Detail

getId

public int getId()

setId

public void setId(int id)

getName

@NotNull
public String getName()

setName

public void setName(@NotNull
                    String name)

getDescription

@Nullable
public String getDescription()

setDescription

public void setDescription(@Nullable
                           String description)

getConfiguration

public Configuration getConfiguration()

setConfiguration

public void setConfiguration(Configuration configuration)

getConfigurationDefinition

public ConfigurationDefinition getConfigurationDefinition()

setConfigurationDefinition

public void setConfigurationDefinition(ConfigurationDefinition configurationDefinition)

isDefault

public boolean isDefault()

setDefault

public void setDefault(boolean isDefault)

createConfiguration

public Configuration createConfiguration()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.