javax.rad.model
Enum MetaDataCacheOption

java.lang.Object
  extended by java.lang.Enum<MetaDataCacheOption>
      extended by javax.rad.model.MetaDataCacheOption
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MetaDataCacheOption>

public enum MetaDataCacheOption
extends java.lang.Enum<MetaDataCacheOption>

The MetaDataCacheOption indicates the behavior of the metadata cache.


Enum Constant Summary
Default
          Use default/global settings.
Off
          Do not cache the metadata.
On
          Always cache the metadata.
 
Method Summary
static MetaDataCacheOption resolve(java.lang.String pName)
          Resolves the cache option specified by a string.
static MetaDataCacheOption valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MetaDataCacheOption[] 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

Default

public static final MetaDataCacheOption Default
Use default/global settings.


On

public static final MetaDataCacheOption On
Always cache the metadata.


Off

public static final MetaDataCacheOption Off
Do not cache the metadata.

Method Detail

values

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

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

valueOf

public static MetaDataCacheOption valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

resolve

public static MetaDataCacheOption resolve(java.lang.String pName)
Resolves the cache option specified by a string. The detection is case insensitive. It's possible to resolve DEFAULT as Default.

Parameters:
pName - the option name.
Returns:
the cache option.
Throws:
java.lang.IllegalArgumentException - if pName is null or the name is unknown.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.