org.eclipse.gmf.codegen.gmfgen
Enum LinkLabelAlignment

java.lang.Object
  extended by java.lang.Enum<LinkLabelAlignment>
      extended by org.eclipse.gmf.codegen.gmfgen.LinkLabelAlignment
All Implemented Interfaces:
Serializable, Comparable<LinkLabelAlignment>, org.eclipse.emf.common.util.Enumerator

public enum LinkLabelAlignment
extends Enum<LinkLabelAlignment>
implements org.eclipse.emf.common.util.Enumerator

A representation of the literals of the enumeration 'Link Label Alignment', and utility methods for working with them. Constants from ConnectionLocator

See Also:
GMFGenPackage.getLinkLabelAlignment()
Generated
Model Properties:

Enum Constant Summary
MIDDLE_LITERAL
          The 'MIDDLE' literal object.
SOURCE_LITERAL
          The 'SOURCE' literal object.
TARGET_LITERAL
          The 'TARGET' literal object.
 
Field Summary
static int MIDDLE
          The 'MIDDLE' literal value.
static int SOURCE
          The 'SOURCE' literal value.
static int TARGET
          The 'TARGET' literal value.
static List<LinkLabelAlignment> VALUES
          A public read-only list of all the 'Link Label Alignment' enumerators.
 
Method Summary
static LinkLabelAlignment get(int value)
          Returns the 'Link Label Alignment' literal with the specified integer value.
static LinkLabelAlignment get(String literal)
          Returns the 'Link Label Alignment' literal with the specified literal value.
static LinkLabelAlignment getByName(String name)
          Returns the 'Link Label Alignment' 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 LinkLabelAlignment valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LinkLabelAlignment[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MIDDLE_LITERAL

public static final LinkLabelAlignment MIDDLE_LITERAL
The 'MIDDLE' literal object.

See Also:
MIDDLE
Generated
Ordered

TARGET_LITERAL

public static final LinkLabelAlignment TARGET_LITERAL
The 'TARGET' literal object.

See Also:
TARGET
Generated
Ordered

SOURCE_LITERAL

public static final LinkLabelAlignment SOURCE_LITERAL
The 'SOURCE' literal object.

See Also:
SOURCE
Generated
Ordered
Field Detail

MIDDLE

public static final int MIDDLE
The 'MIDDLE' literal value.

If the meaning of 'MIDDLE' literal object isn't clear, there really should be more of a description here...

See Also:
MIDDLE_LITERAL, Constant Field Values
Generated
Ordered
Model Properties:

TARGET

public static final int TARGET
The 'TARGET' literal value.

If the meaning of 'TARGET' literal object isn't clear, there really should be more of a description here...

See Also:
TARGET_LITERAL, Constant Field Values
Generated
Ordered
Model Properties:

SOURCE

public static final int SOURCE
The 'SOURCE' literal value.

If the meaning of 'SOURCE' literal object isn't clear, there really should be more of a description here...

See Also:
SOURCE_LITERAL, Constant Field Values
Generated
Ordered
Model Properties:

VALUES

public static final List<LinkLabelAlignment> VALUES
A public read-only list of all the 'Link Label Alignment' enumerators.

Generated
Method Detail

values

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

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

valueOf

public static LinkLabelAlignment 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
NullPointerException - if the argument is null

get

public static LinkLabelAlignment get(String literal)
Returns the 'Link Label Alignment' literal with the specified literal value.

Generated

getByName

public static LinkLabelAlignment getByName(String name)
Returns the 'Link Label Alignment' literal with the specified name.

Generated

get

public static LinkLabelAlignment get(int value)
Returns the 'Link Label Alignment' literal with the specified integer value.

Generated

getValue

public int getValue()

Specified by:
getValue in interface org.eclipse.emf.common.util.Enumerator
Generated

getName

public String getName()

Specified by:
getName in interface org.eclipse.emf.common.util.Enumerator
Generated

getLiteral

public String getLiteral()

Specified by:
getLiteral in interface org.eclipse.emf.common.util.Enumerator
Generated

toString

public String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class Enum<LinkLabelAlignment>
Generated


Copyright © 2012. All Rights Reserved.