org.oddjob
Enum OddjobInheritance

java.lang.Object
  extended by java.lang.Enum<OddjobInheritance>
      extended by org.oddjob.OddjobInheritance
All Implemented Interfaces:
Serializable, Comparable<OddjobInheritance>

public enum OddjobInheritance
extends Enum<OddjobInheritance>

Values that the Oddjob Inheritance property can take.

Author:
rob

Enum Constant Summary
NONE
          No values or properties are automatically inherited.
PROPERTIES
          All properties are inherited.
SHARED
          All properties and values are shared between the parent and child Oddjobs.
 
Method Summary
static OddjobInheritance valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OddjobInheritance[] 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

NONE

public static final OddjobInheritance NONE
No values or properties are automatically inherited.


PROPERTIES

public static final OddjobInheritance PROPERTIES
All properties are inherited. Only properties are inherited, values must be exported explicitly using the export property.


SHARED

public static final OddjobInheritance SHARED
All properties and values are shared between the parent and child Oddjobs. Any properties or values set in the child will be visible in the parent. This setting is particularly useful for shared common configuration.

Method Detail

values

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

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

valueOf

public static OddjobInheritance 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