org.rhq.plugins.apache.mapping
Enum DirectiveMapping

java.lang.Object
  extended by java.lang.Enum<DirectiveMapping>
      extended by 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

Enum Constant Summary
DIRECTIVE_PER_MAP
           
DIRECTIVE_PER_MAP_INDEX
           
PARAM_PER_MAP
           
POSITION_PROPERTY
           
SIMPLE_PROP
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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 tree
startNode - the starting node
resourceConfigDef - 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.