|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.configuration.definition.ConfigurationDefinition
public class ConfigurationDefinition
The entire definition for a javax.persistence.CascadeType.Configuration
. This includes mapped property
definitions of arbitrary complexity, made up of PropertyDefinitionSimple
s, PropertyDefinitionList
s,
and PropertyDefinitionMap
s.
Field Summary | |
---|---|
static String |
QUERY_FIND_DEPLOYMENT_BY_PACKAGE_TYPE_ID
|
static String |
QUERY_FIND_PLUGIN_BY_RESOURCE_TYPE_ID
|
static String |
QUERY_FIND_RESOURCE_BY_RESOURCE_TYPE_ID
|
Constructor Summary | |
---|---|
protected |
ConfigurationDefinition()
|
|
ConfigurationDefinition(String name,
String description)
|
Method Summary | |
---|---|
PropertyDefinition |
get(String name)
|
ConfigurationFormat |
getConfigurationFormat()
This property is currently used only for resource configuration which may support structured config, raw config, both, or neither. |
ConfigurationTemplate |
getDefaultTemplate()
If there is a default template, return it, otherwise return null. |
String |
getDescription()
|
List<PropertyGroupDefinition> |
getGroupDefinitions()
Goes through the properties of this definition and builds a list of the groups that contain its properties. |
int |
getId()
|
String |
getName()
|
List<PropertyDefinition> |
getNonGroupedProperties()
Retrieve property definitions for properties that are not in a group. |
List<PropertyDefinition> |
getPropertiesInGroup(String groupName)
Retrieve property definitions for properties in a group with the provided name. |
PropertyDefinitionList |
getPropertyDefinitionList(String name)
|
PropertyDefinitionMap |
getPropertyDefinitionMap(String name)
|
Map<String,PropertyDefinition> |
getPropertyDefinitions()
Get the properties for this configuration. |
PropertyDefinitionSimple |
getPropertyDefinitionSimple(String name)
|
ConfigurationTemplate |
getTemplate(String name)
Returns the template indicated by the specified name |
Map<String,ConfigurationTemplate> |
getTemplates()
This is a list of templates for this configuration definition. |
void |
put(PropertyDefinition propertyDefinition)
|
void |
putTemplate(ConfigurationTemplate template)
|
ConfigurationTemplate |
removeTemplate(ConfigurationTemplate template)
|
void |
setConfigurationFormat(ConfigurationFormat configurationFormat)
|
void |
setDescription(String description)
|
void |
setId(int id)
|
void |
setName(String name)
|
void |
setPropertyDefinitions(Map<String,PropertyDefinition> propertyDefinitions)
|
Set<String> |
templateNamesSet()
Returns the set of all template names for this definition. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String QUERY_FIND_DEPLOYMENT_BY_PACKAGE_TYPE_ID
public static final String QUERY_FIND_RESOURCE_BY_RESOURCE_TYPE_ID
public static final String QUERY_FIND_PLUGIN_BY_RESOURCE_TYPE_ID
Constructor Detail |
---|
protected ConfigurationDefinition()
public ConfigurationDefinition(@NotNull String name, String description)
Method Detail |
---|
public int getId()
public void setId(int id)
@NotNull public String getName()
public void setName(@NotNull String name)
public String getDescription()
public void setDescription(String description)
public ConfigurationFormat getConfigurationFormat()
null
.
null
indicates an older
plugin that was developed prior to raw configuration being supported.public void setConfigurationFormat(ConfigurationFormat configurationFormat)
@NotNull public Map<String,PropertyDefinition> getPropertyDefinitions()
public void setPropertyDefinitions(Map<String,PropertyDefinition> propertyDefinitions)
public void put(PropertyDefinition propertyDefinition)
public PropertyDefinition get(String name)
public PropertyDefinitionSimple getPropertyDefinitionSimple(String name)
public PropertyDefinitionList getPropertyDefinitionList(String name)
public PropertyDefinitionMap getPropertyDefinitionMap(String name)
@NotNull public List<PropertyGroupDefinition> getGroupDefinitions()
@NotNull public List<PropertyDefinition> getPropertiesInGroup(String groupName)
groupName
- the name of the group
@NotNull public List<PropertyDefinition> getNonGroupedProperties()
propertyDefinitions
,
getPropertyDefinitions()
@NotNull public Map<String,ConfigurationTemplate> getTemplates()
public void putTemplate(ConfigurationTemplate template)
public ConfigurationTemplate removeTemplate(ConfigurationTemplate template)
@Nullable public ConfigurationTemplate getDefaultTemplate()
public ConfigurationTemplate getTemplate(@NotNull String name)
name
- name of the template to return
ConfigurationTemplate
with the specified name; null
if no template by that name
exists.public Set<String> templateNamesSet()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |