net.sf.farrago.cwm.relational.enumerations
Class ReferentialRuleTypeEnum

java.lang.Object
  extended by net.sf.farrago.cwm.relational.enumerations.ReferentialRuleTypeEnum
All Implemented Interfaces:
Serializable, RefEnum, ReferentialRuleType

public final class ReferentialRuleTypeEnum
extends Object
implements ReferentialRuleType

ReferentialRuleType enumeration class implementation.

Note: This type should not be subclassed, implemented or directly instantiated by clients. It is generated from a MOF metamodel and implemented by Enki or MDR.

See Also:
Serialized Form

Field Summary
static ReferentialRuleTypeEnum IMPORTED_KEY_CASCADE
          Enumeration constant corresponding to literal importedKeyCascade.
static ReferentialRuleTypeEnum IMPORTED_KEY_NO_ACTION
          Enumeration constant corresponding to literal importedKeyNoAction.
static ReferentialRuleTypeEnum IMPORTED_KEY_RESTRICT
          Enumeration constant corresponding to literal importedKeyRestrict.
static ReferentialRuleTypeEnum IMPORTED_KEY_SET_DEFAULT
          Enumeration constant corresponding to literal importedKeySetDefault.
static ReferentialRuleTypeEnum IMPORTED_KEY_SET_NULL
          Enumeration constant corresponding to literal importedKeySetNull.
private  String literalName
           
private static List<String> typeName
           
private static Map<String,ReferentialRuleTypeEnum> valueMap
           
 
Constructor Summary
private ReferentialRuleTypeEnum(String literalName)
           
 
Method Summary
 boolean equals(Object o)
          Indicates whether some other object is equal to this enumeration value.
static ReferentialRuleType forName(String name)
          Translates literal name to correspondent enumeration value.
 int hashCode()
          Returns a hash code for this enumeration value.
protected  Object readResolve()
          Resolves serialized instance of enumeration value.
 List<String> refTypeName()
          Returns fully qualified name of the enumeration type.
 String toString()
          Returns a string representation of the enumeration value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

IMPORTED_KEY_NO_ACTION

public static final ReferentialRuleTypeEnum IMPORTED_KEY_NO_ACTION
Enumeration constant corresponding to literal importedKeyNoAction.


IMPORTED_KEY_CASCADE

public static final ReferentialRuleTypeEnum IMPORTED_KEY_CASCADE
Enumeration constant corresponding to literal importedKeyCascade.


IMPORTED_KEY_SET_NULL

public static final ReferentialRuleTypeEnum IMPORTED_KEY_SET_NULL
Enumeration constant corresponding to literal importedKeySetNull.


IMPORTED_KEY_RESTRICT

public static final ReferentialRuleTypeEnum IMPORTED_KEY_RESTRICT
Enumeration constant corresponding to literal importedKeyRestrict.


IMPORTED_KEY_SET_DEFAULT

public static final ReferentialRuleTypeEnum IMPORTED_KEY_SET_DEFAULT
Enumeration constant corresponding to literal importedKeySetDefault.


valueMap

private static final Map<String,ReferentialRuleTypeEnum> valueMap

typeName

private static final List<String> typeName

literalName

private final String literalName
Constructor Detail

ReferentialRuleTypeEnum

private ReferentialRuleTypeEnum(String literalName)
Method Detail

refTypeName

public List<String> refTypeName()
Returns fully qualified name of the enumeration type.

Specified by:
refTypeName in interface RefEnum
Returns:
List containing all parts of the fully qualified name.

toString

public String toString()
Returns a string representation of the enumeration value.

Specified by:
toString in interface RefEnum
Overrides:
toString in class Object
Returns:
A string representation of the enumeration value.

hashCode

public int hashCode()
Returns a hash code for this enumeration value.

Specified by:
hashCode in interface RefEnum
Overrides:
hashCode in class Object
Returns:
A hash code for this enumeration value.

equals

public boolean equals(Object o)
Indicates whether some other object is equal to this enumeration value.

Specified by:
equals in interface RefEnum
Overrides:
equals in class Object
Parameters:
o - The reference object with which to compare.
Returns:
true if the other object is the enumeration of the same type and of the same value.

forName

public static ReferentialRuleType forName(String name)
Translates literal name to correspondent enumeration value.

Parameters:
name - Enumeration literal.
Returns:
Enumeration value corresponding to the passed literal.

readResolve

protected Object readResolve()
                      throws ObjectStreamException
Resolves serialized instance of enumeration value.

Returns:
Resolved enumeration value.
Throws:
ObjectStreamException