com.ibm.etools.cobol.application.model.cobol
Class CharacterCodeSet

java.lang.Object
  extended by org.eclipse.emf.common.util.AbstractEnumerator
      extended by com.ibm.etools.cobol.application.model.cobol.CharacterCodeSet
All Implemented Interfaces:
java.io.Serializable, org.eclipse.emf.common.util.Enumerator

public final class CharacterCodeSet
extends org.eclipse.emf.common.util.AbstractEnumerator

A representation of the character code set in the ALPHABET clause in the SPECIAL-NAMES paragraph. The values represent EBCDIC, NATIVE, STANDARD-1, and STANDARD-2. If no code set was specified, the CODESET_NOT_SPECIFIED literal is used. This includes the literals of the enumeration 'Character Code Set', and utility methods for working with them.

See Also:
COBOLPackage.getCharacterCodeSet(), Serialized Form

Field Summary
static int CODESET_EBCDIC
          The 'CODESET EBCDIC' literal value.
static CharacterCodeSet CODESET_EBCDIC_LITERAL
          The 'CODESET EBCDIC' literal object.
static int CODESET_NATIVE
          The 'CODESET NATIVE' literal value.
static CharacterCodeSet CODESET_NATIVE_LITERAL
          The 'CODESET NATIVE' literal object.
static int CODESET_NOT_SPECIFIED
          The 'CODESET NOT SPECIFIED' literal value.
static CharacterCodeSet CODESET_NOT_SPECIFIED_LITERAL
          The 'CODESET NOT SPECIFIED' literal object.
static int CODESET_STANDARD_1
          The 'CODESET STANDARD 1' literal value.
static CharacterCodeSet CODESET_STANDARD_1_LITERAL
          The 'CODESET STANDARD 1' literal object.
static int CODESET_STANDARD_2
          The 'CODESET STANDARD 2' literal value.
static CharacterCodeSet CODESET_STANDARD_2_LITERAL
          The 'CODESET STANDARD 2' literal object.
static java.lang.String copyright
           
static java.util.List VALUES
          A public read-only list of all the 'Character Code Set' enumerators.
 
Method Summary
static CharacterCodeSet get(int value)
          Returns the 'Character Code Set' literal with the specified integer value.
static CharacterCodeSet get(java.lang.String literal)
          Returns the 'Character Code Set' literal with the specified literal value.
static CharacterCodeSet getByName(java.lang.String name)
          Returns the 'Character Code Set' literal with the specified name.
 
Methods inherited from class org.eclipse.emf.common.util.AbstractEnumerator
getLiteral, getName, getValue, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values

CODESET_NOT_SPECIFIED

public static final int CODESET_NOT_SPECIFIED
The 'CODESET NOT SPECIFIED' literal value.

This value is used if a code set was not specified in the ALPHABET clause.

See Also:
CODESET_NOT_SPECIFIED_LITERAL, Constant Field Values

CODESET_STANDARD_1

public static final int CODESET_STANDARD_1
The 'CODESET STANDARD 1' literal value.

Represents STANDARD-1.

See Also:
CODESET_STANDARD_1_LITERAL, Constant Field Values

CODESET_STANDARD_2

public static final int CODESET_STANDARD_2
The 'CODESET STANDARD 2' literal value.

Represents STANDARD-2.

See Also:
CODESET_STANDARD_2_LITERAL, Constant Field Values

CODESET_NATIVE

public static final int CODESET_NATIVE
The 'CODESET NATIVE' literal value.

Represents NATIVE.

See Also:
CODESET_NATIVE_LITERAL, Constant Field Values

CODESET_EBCDIC

public static final int CODESET_EBCDIC
The 'CODESET EBCDIC' literal value.

Represents EBCDIC.

See Also:
CODESET_EBCDIC_LITERAL, Constant Field Values

CODESET_NOT_SPECIFIED_LITERAL

public static final CharacterCodeSet CODESET_NOT_SPECIFIED_LITERAL
The 'CODESET NOT SPECIFIED' literal object.

See Also:
CODESET_NOT_SPECIFIED

CODESET_STANDARD_1_LITERAL

public static final CharacterCodeSet CODESET_STANDARD_1_LITERAL
The 'CODESET STANDARD 1' literal object.

See Also:
CODESET_STANDARD_1

CODESET_STANDARD_2_LITERAL

public static final CharacterCodeSet CODESET_STANDARD_2_LITERAL
The 'CODESET STANDARD 2' literal object.

See Also:
CODESET_STANDARD_2

CODESET_NATIVE_LITERAL

public static final CharacterCodeSet CODESET_NATIVE_LITERAL
The 'CODESET NATIVE' literal object.

See Also:
CODESET_NATIVE

CODESET_EBCDIC_LITERAL

public static final CharacterCodeSet CODESET_EBCDIC_LITERAL
The 'CODESET EBCDIC' literal object.

See Also:
CODESET_EBCDIC

VALUES

public static final java.util.List VALUES
A public read-only list of all the 'Character Code Set' enumerators.

Method Detail

get

public static CharacterCodeSet get(java.lang.String literal)
Returns the 'Character Code Set' literal with the specified literal value.


getByName

public static CharacterCodeSet getByName(java.lang.String name)
Returns the 'Character Code Set' literal with the specified name.


get

public static CharacterCodeSet get(int value)
Returns the 'Character Code Set' literal with the specified integer value.