org.eigenbase.jmi
Enum JmiAssocMapping

java.lang.Object
  extended by java.lang.Enum<JmiAssocMapping>
      extended by org.eigenbase.jmi.JmiAssocMapping
All Implemented Interfaces:
Serializable, Comparable<JmiAssocMapping>

public enum JmiAssocMapping
extends Enum<JmiAssocMapping>

JmiAssocMapping enumerates the possible ways an association edge can be mapped when a JMI graph is being transformed.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/jmi/JmiAssocMapping.java#9 $
Author:
John Sichi

Enum Constant Summary
CONTRACTION
          The two ends of the association should be contracted into one vertex in the transformed graph.
COPY
          The association edge should be preserved in the transformed graph.
HIERARCHY
          The association edge should be interpreted as a hierarchical structure to be superimposed on the graph, with the source as parent and the target as child.
REMOVAL
          The association should be left out of the transformed graph.
REVERSAL
          The association edge should be preserved in the transformed graph, but its direction should be reversed.
 
Method Summary
static JmiAssocMapping valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JmiAssocMapping[] 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

REMOVAL

public static final JmiAssocMapping REMOVAL
The association should be left out of the transformed graph.


COPY

public static final JmiAssocMapping COPY
The association edge should be preserved in the transformed graph.


REVERSAL

public static final JmiAssocMapping REVERSAL
The association edge should be preserved in the transformed graph, but its direction should be reversed.


CONTRACTION

public static final JmiAssocMapping CONTRACTION
The two ends of the association should be contracted into one vertex in the transformed graph.


HIERARCHY

public static final JmiAssocMapping HIERARCHY
The association edge should be interpreted as a hierarchical structure to be superimposed on the graph, with the source as parent and the target as child.

Method Detail

values

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

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

valueOf

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