org.rhq.core.domain.bundle
Enum ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context

java.lang.Object
  extended by java.lang.Enum<ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context>
      extended by org.rhq.core.domain.bundle.ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context
All Implemented Interfaces:
Serializable, Comparable<ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context>
Enclosing class:
ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory

public static enum ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context
extends Enum<ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context>

Defines the different places where we can lookup the named value that contains the actual location of the destination base directory. The names of these enum constants match the valid values that the agent plugin XML schema accepts, to allow for easy translation from the XML to this Java representation.


Enum Constant Summary
fileSystem
          the value is a hardcoded location on the file system - usually the root "/" directory
measurementTrait
          the value is to be found as a measurement trait
pluginConfiguration
          the value is to be found in the resource's plugin configuration
resourceConfiguration
          the value is to be found in the resource's resource configuration
 
Method Summary
static ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context[] 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

pluginConfiguration

public static final ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context pluginConfiguration
the value is to be found in the resource's plugin configuration


resourceConfiguration

public static final ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context resourceConfiguration
the value is to be found in the resource's resource configuration


measurementTrait

public static final ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context measurementTrait
the value is to be found as a measurement trait


fileSystem

public static final ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context fileSystem
the value is a hardcoded location on the file system - usually the root "/" directory

Method Detail

values

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

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

valueOf

public static ResourceTypeBundleConfiguration.BundleDestinationBaseDirectory.Context 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


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