org.rhq.plugins.apache.mapping
Enum DirectiveMapping
java.lang.Object
java.lang.Enum<DirectiveMapping>
org.rhq.plugins.apache.mapping.DirectiveMapping
- All Implemented Interfaces:
- Serializable, Comparable<DirectiveMapping>
public enum DirectiveMapping
- extends Enum<DirectiveMapping>
This enum represents the list of mapping strategies we use in the resource configuration.
- Author:
- Filip Drabek, Lukas Krejci
|
Method Summary |
abstract void |
mapToAugeas(AugeasTree tree,
AugeasNode node,
org.rhq.core.domain.configuration.Configuration config,
org.rhq.core.domain.configuration.definition.ConfigurationDefinition configDef)
|
abstract org.rhq.core.domain.configuration.Configuration |
mapToConfiguration(AugeasTree tree,
AugeasNode startNode,
org.rhq.core.domain.configuration.definition.ConfigurationDefinition resourceConfigDef)
Creates the configuration based on the supplied configuration definition,
parsing the augeas tree starting at the start node. |
static DirectiveMapping |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DirectiveMapping[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
DIRECTIVE_PER_MAP
public static final DirectiveMapping DIRECTIVE_PER_MAP
PARAM_PER_MAP
public static final DirectiveMapping PARAM_PER_MAP
DIRECTIVE_PER_MAP_INDEX
public static final DirectiveMapping DIRECTIVE_PER_MAP_INDEX
POSITION_PROPERTY
public static final DirectiveMapping POSITION_PROPERTY
SIMPLE_PROP
public static final DirectiveMapping SIMPLE_PROP
values
public static DirectiveMapping[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (DirectiveMapping c : DirectiveMapping.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DirectiveMapping valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
mapToConfiguration
public abstract org.rhq.core.domain.configuration.Configuration mapToConfiguration(AugeasTree tree,
AugeasNode startNode,
org.rhq.core.domain.configuration.definition.ConfigurationDefinition resourceConfigDef)
- Creates the configuration based on the supplied configuration definition,
parsing the augeas tree starting at the start node.
- Parameters:
tree - the augeas treestartNode - the starting noderesourceConfigDef - the config definition
- Returns:
- the parsed configuration
mapToAugeas
public abstract void mapToAugeas(AugeasTree tree,
AugeasNode node,
org.rhq.core.domain.configuration.Configuration config,
org.rhq.core.domain.configuration.definition.ConfigurationDefinition configDef)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.