org.codehaus.plexus.configuration
Enum PlexusConfigurationUtils.MergePolicyType

java.lang.Object
  extended by java.lang.Enum<PlexusConfigurationUtils.MergePolicyType>
      extended by org.codehaus.plexus.configuration.PlexusConfigurationUtils.MergePolicyType
All Implemented Interfaces:
Serializable, Comparable<PlexusConfigurationUtils.MergePolicyType>
Enclosing class:
PlexusConfigurationUtils

public static enum PlexusConfigurationUtils.MergePolicyType
extends Enum<PlexusConfigurationUtils.MergePolicyType>

Defines the various types of merge policy type attributes


Enum Constant Summary
CHILDREN_MERGE_POLICY
          MergePolicy to apply to children, only applicable if the MergePolicy for the element itself is MERGE
SELF_MERGE_POLICY
          MergePolicy to apply to the element itself
 
Method Summary
 MergePolicy getMergePolicy(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
           
 MergePolicy getMergePolicy(org.codehaus.plexus.configuration.PlexusConfiguration configuration, MergePolicy defaultMergePolicy)
          Get the MergePolicy configured on the PlexusConfiguration for this attribute type.
static PlexusConfigurationUtils.MergePolicyType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PlexusConfigurationUtils.MergePolicyType[] 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

SELF_MERGE_POLICY

public static final PlexusConfigurationUtils.MergePolicyType SELF_MERGE_POLICY
MergePolicy to apply to the element itself

See Also:
MergePolicy

CHILDREN_MERGE_POLICY

public static final PlexusConfigurationUtils.MergePolicyType CHILDREN_MERGE_POLICY
MergePolicy to apply to children, only applicable if the MergePolicy for the element itself is MERGE

See Also:
MergePolicy
Method Detail

values

public static PlexusConfigurationUtils.MergePolicyType[] 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 (PlexusConfigurationUtils.MergePolicyType c : PlexusConfigurationUtils.MergePolicyType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PlexusConfigurationUtils.MergePolicyType 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

getMergePolicy

public MergePolicy getMergePolicy(org.codehaus.plexus.configuration.PlexusConfiguration configuration)
See Also:
getMergePolicy(PlexusConfiguration, MergePolicy)

getMergePolicy

public MergePolicy getMergePolicy(org.codehaus.plexus.configuration.PlexusConfiguration configuration,
                                  MergePolicy defaultMergePolicy)
Get the MergePolicy configured on the PlexusConfiguration for this attribute type.

Parameters:
configuration - The configuration element
defaultMergePolicy - The default value to return if no MergePolicy is specified


Copyright © 2011 Jasig. All Rights Reserved.