org.eclipse.emf.ecp.view.core.swt.test.model
Enum TestEnum

java.lang.Object
  extended by java.lang.Enum<TestEnum>
      extended by org.eclipse.emf.ecp.view.core.swt.test.model.TestEnum
All Implemented Interfaces:
Serializable, Comparable<TestEnum>, org.eclipse.emf.common.util.Enumerator

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

A representation of the literals of the enumeration 'Enum', and utility methods for working with them.

See Also:
TestPackage.getTestEnum()

Enum Constant Summary
A
          The 'A' literal object.
B
          The 'B' literal object.
C
          The 'C' literal object.
 
Field Summary
static int A_VALUE
          The 'A' literal value.
static int B_VALUE
          The 'B' literal value.
static int C_VALUE
          The 'C' literal value.
static List<TestEnum> VALUES
          A public read-only list of all the 'Enum' enumerators.
 
Method Summary
static TestEnum get(int value)
          Returns the 'Enum' literal with the specified integer value.
static TestEnum get(String literal)
          Returns the 'Enum' literal with the specified literal value.
static TestEnum getByName(String name)
          Returns the 'Enum' 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 TestEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TestEnum[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

A

public static final TestEnum A
The 'A' literal object.

See Also:
A_VALUE

B

public static final TestEnum B
The 'B' literal object.

See Also:
B_VALUE

C

public static final TestEnum C
The 'C' literal object.

See Also:
C_VALUE
Field Detail

A_VALUE

public static final int A_VALUE
The 'A' literal value.

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

See Also:
A, Constant Field Values

B_VALUE

public static final int B_VALUE
The 'B' literal value.

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

See Also:
B, Constant Field Values

C_VALUE

public static final int C_VALUE
The 'C' literal value.

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

See Also:
C, Constant Field Values

VALUES

public static final List<TestEnum> VALUES
A public read-only list of all the 'Enum' enumerators.

Method Detail

values

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

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

valueOf

public static TestEnum 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 TestEnum get(String literal)
Returns the 'Enum' literal with the specified literal value.


getByName

public static TestEnum getByName(String name)
Returns the 'Enum' literal with the specified name.


get

public static TestEnum get(int value)
Returns the 'Enum' literal with the specified integer value.


getValue

public int getValue()

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

getName

public String getName()

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

getLiteral

public String getLiteral()

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

toString

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

Overrides:
toString in class Enum<TestEnum>


Copyright © 2015. All Rights Reserved.