com.softwareag.centrasite.appl.framework.validation.impl
Enum ValidationDefaults.Instantiation

java.lang.Object
  extended by java.lang.Enum<ValidationDefaults.Instantiation>
      extended by com.softwareag.centrasite.appl.framework.validation.impl.ValidationDefaults.Instantiation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ValidationDefaults.Instantiation>
Enclosing class:
ValidationDefaults

public static enum ValidationDefaults.Instantiation
extends java.lang.Enum<ValidationDefaults.Instantiation>

This enumeration is used to specify the various instantiation types.


Enum Constant Summary
always
          A new instance is created for every use.
perEnclosingObject
          A new instance is created for every enclosing object.
singleton
          A single instance is kept as a singleton.
 
Method Summary
static ValidationDefaults.Instantiation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ValidationDefaults.Instantiation[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

singleton

public static final ValidationDefaults.Instantiation singleton
A single instance is kept as a singleton.


perEnclosingObject

public static final ValidationDefaults.Instantiation perEnclosingObject
A new instance is created for every enclosing object.


always

public static final ValidationDefaults.Instantiation always
A new instance is created for every use.

Method Detail

values

public static final ValidationDefaults.Instantiation[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ValidationDefaults.Instantiation c : ValidationDefaults.Instantiation.values())
        System.out.println(c);

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

valueOf

public static ValidationDefaults.Instantiation 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