Package com.sodius.mdw.metamodel.doors
Enum LinkKind
- java.lang.Object
-
- java.lang.Enum<LinkKind>
-
- com.sodius.mdw.metamodel.doors.LinkKind
-
- All Implemented Interfaces:
Serializable
,Comparable<LinkKind>
,org.eclipse.emf.common.util.Enumerator
public enum LinkKind extends Enum<LinkKind> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Link Kind', and utility methods for working with them.- See Also:
DoorsPackage.getLinkKind()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MANY_TO_MANY_LITERAL
The 'Many To Many' literal object.MANY_TO_ONE_LITERAL
The 'Many To One' literal object.ONE_TO_MANY_LITERAL
The 'One To Many' literal object.ONE_TO_ONE_LITERAL
The 'One To One' literal object.
-
Field Summary
Fields Modifier and Type Field Description static int
MANY_TO_MANY
The 'Many To Many' literal value.static int
MANY_TO_ONE
The 'Many To One' literal value.static int
ONE_TO_MANY
The 'One To Many' literal value.static int
ONE_TO_ONE
The 'One To One' literal value.static List<LinkKind>
VALUES
A public read-only list of all the 'Link Kind' enumerators.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LinkKind
get(int value)
Returns the 'Link Kind' literal with the specified integer value.static LinkKind
get(String literal)
Returns the 'Link Kind' literal with the specified literal value.static LinkKind
getByName(String name)
Returns the 'Link Kind' literal with the specified name.String
getLiteral()
String
getName()
int
getValue()
String
toString()
Returns the literal value of the enumerator, which is its string representation.static LinkKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static LinkKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MANY_TO_MANY_LITERAL
public static final LinkKind MANY_TO_MANY_LITERAL
The 'Many To Many' literal object.- See Also:
MANY_TO_MANY
-
MANY_TO_ONE_LITERAL
public static final LinkKind MANY_TO_ONE_LITERAL
The 'Many To One' literal object.- See Also:
MANY_TO_ONE
-
ONE_TO_MANY_LITERAL
public static final LinkKind ONE_TO_MANY_LITERAL
The 'One To Many' literal object.- See Also:
ONE_TO_MANY
-
ONE_TO_ONE_LITERAL
public static final LinkKind ONE_TO_ONE_LITERAL
The 'One To One' literal object.- See Also:
ONE_TO_ONE
-
-
Field Detail
-
MANY_TO_MANY
public static final int MANY_TO_MANY
The 'Many To Many' literal value.- See Also:
MANY_TO_MANY_LITERAL
, Constant Field Values
-
MANY_TO_ONE
public static final int MANY_TO_ONE
The 'Many To One' literal value.- See Also:
MANY_TO_ONE_LITERAL
, Constant Field Values
-
ONE_TO_MANY
public static final int ONE_TO_MANY
The 'One To Many' literal value.- See Also:
ONE_TO_MANY_LITERAL
, Constant Field Values
-
ONE_TO_ONE
public static final int ONE_TO_ONE
The 'One To One' literal value.- See Also:
ONE_TO_ONE_LITERAL
, Constant Field Values
-
-
Method Detail
-
values
public static LinkKind[] 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 (LinkKind c : LinkKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LinkKind 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 nameNullPointerException
- if the argument is null
-
get
public static LinkKind get(String literal)
Returns the 'Link Kind' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
.
-
getByName
public static LinkKind getByName(String name)
Returns the 'Link Kind' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
.
-
get
public static LinkKind get(int value)
Returns the 'Link Kind' literal with the specified integer value.- Parameters:
value
- the integer value.- Returns:
- the matching enumerator or
null
.
-
getValue
public int getValue()
- Specified by:
getValue
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
public String getLiteral()
- Specified by:
getLiteral
in interfaceorg.eclipse.emf.common.util.Enumerator
-
-