com.softwareag.centrasite.appl.framework.persistence.mapper.annotations
Enum Classification.MappedTo

java.lang.Object
  extended by java.lang.Enum<Classification.MappedTo>
      extended by com.softwareag.centrasite.appl.framework.persistence.mapper.annotations.Classification.MappedTo
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Classification.MappedTo>
Enclosing class:
Classification

public static enum Classification.MappedTo
extends java.lang.Enum<Classification.MappedTo>

The bean/relation mapped to a classification can be mapped to the classification itself or the underlying Concept. Most natural this would be the classification. However sometimes the classification is just used as a stamp and do not contain any other data apart from its concept. In such case we can actually map the bean to data inside the concept.


Enum Constant Summary
CLASSIFICATION_OBJECT
          Map the property value to the classification object itself.
TARGET_CONCEPT
          Map the property value to the concept referenced by the classification.
 
Method Summary
static Classification.MappedTo valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Classification.MappedTo[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CLASSIFICATION_OBJECT

public static final Classification.MappedTo CLASSIFICATION_OBJECT
Map the property value to the classification object itself.


TARGET_CONCEPT

public static final Classification.MappedTo TARGET_CONCEPT
Map the property value to the concept referenced by the classification.

Method Detail

values

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

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

valueOf

public static Classification.MappedTo 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