Package org.faktorips.runtime.model.type
Enum AssociationKind
- java.lang.Object
-
- java.lang.Enum<AssociationKind>
-
- org.faktorips.runtime.model.type.AssociationKind
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AssociationKind>
public enum AssociationKind extends java.lang.Enum<AssociationKind>
The possible kinds of associations.- See Also:
Association.getAssociationKind()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AssociationAn association between two elements not in a parent-child-relation.CompositionA parent-child relationCompositionToMasterA child-parent relation
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AssociationKindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AssociationKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Association
public static final AssociationKind Association
An association between two elements not in a parent-child-relation.
-
Composition
public static final AssociationKind Composition
A parent-child relation
-
CompositionToMaster
public static final AssociationKind CompositionToMaster
A child-parent relation
-
-
Method Detail
-
values
public static AssociationKind[] 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 (AssociationKind c : AssociationKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AssociationKind 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 namejava.lang.NullPointerException- if the argument is null
-
-