com.abra.j2xb.annotations
Enum SourcePropertyOf

java.lang.Object
  extended by java.lang.Enum<SourcePropertyOf>
      extended by com.abra.j2xb.annotations.SourcePropertyOf
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SourcePropertyOf>

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

Defines the source property when used as part of constructor or factory parameter value. See the examples of MOConstructionDescriptor.

Since:
JDK1.5
Version:
1.0, May 1, 2008
Author:
Yoav Abrahami
See Also:
MOConstructionDescriptor, MOConstructorArg

Enum Constant Summary
constructedInstance
          Defines the source of the value is a property belonging to the constructed instance (mapped property of the constructed instance).
parent
          Defines the source of the value is a property belonging to the parent bean constructing the instance.
 
Method Summary
static SourcePropertyOf valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SourcePropertyOf[] 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

parent

public static final SourcePropertyOf parent
Defines the source of the value is a property belonging to the parent bean constructing the instance.


constructedInstance

public static final SourcePropertyOf constructedInstance
Defines the source of the value is a property belonging to the constructed instance (mapped property of the constructed instance).

Method Detail

values

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

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

valueOf

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


Copyright © 2008. All Rights Reserved.