Generation Framework

org.eclipse.gmf.mappings
Enum Language

java.lang.Object
  extended by java.lang.Enum<Language>
      extended by org.eclipse.gmf.mappings.Language
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Language>, org.eclipse.emf.common.util.Enumerator

public enum Language
extends java.lang.Enum<Language>
implements org.eclipse.emf.common.util.Enumerator

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

See Also:
GMFMapPackage.getLanguage()
** Generated **
Model:

Enum Constant Summary
JAVA_LITERAL
          The 'Java' literal object
NREGEXP_LITERAL
          The 'Nregexp' literal object
OCL_LITERAL
          The 'Ocl' literal object
REGEXP_LITERAL
          The 'Regexp' literal object
 
Field Summary
static int JAVA
          The 'Java' literal value
static int NREGEXP
          The 'Nregexp' literal value
static int OCL
          The 'Ocl' literal value
static int REGEXP
          The 'Regexp' literal value
static java.util.List<Language> VALUES
          A public read-only list of all the 'Language' enumerators
 
Method Summary
static Language get(int value)
          Returns the 'Language' literal with the specified integer value
static Language get(java.lang.String literal)
          Returns the 'Language' literal with the specified literal value
static Language getByName(java.lang.String name)
          Returns the 'Language' literal with the specified name
 java.lang.String getLiteral()
           
 java.lang.String getName()
           
 int getValue()
           
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation
static Language valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Language[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OCL_LITERAL

public static final Language OCL_LITERAL
The 'Ocl' literal object.

See Also:
OCL
** Generated **
Ordered:

JAVA_LITERAL

public static final Language JAVA_LITERAL
The 'Java' literal object.

See Also:
JAVA
** Generated **
Ordered:

REGEXP_LITERAL

public static final Language REGEXP_LITERAL
The 'Regexp' literal object.

See Also:
REGEXP
** Generated **
Ordered:

NREGEXP_LITERAL

public static final Language NREGEXP_LITERAL
The 'Nregexp' literal object.

See Also:
NREGEXP
** Generated **
Ordered:
Field Detail

OCL

public static final int OCL
The 'Ocl' literal value.

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

See Also:
OCL_LITERAL, Constant Field Values
** Generated **
Ordered:
Model:
name="ocl"

JAVA

public static final int JAVA
The 'Java' literal value.

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

See Also:
JAVA_LITERAL, Constant Field Values
** Generated **
Ordered:
Model:
name="java"

REGEXP

public static final int REGEXP
The 'Regexp' literal value.

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

See Also:
REGEXP_LITERAL, Constant Field Values
** Generated **
Ordered:
Model:
name="regexp"

NREGEXP

public static final int NREGEXP
The 'Nregexp' literal value.

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

See Also:
NREGEXP_LITERAL, Constant Field Values
** Generated **
Ordered:
Model:
name="nregexp"

VALUES

public static final java.util.List<Language> VALUES
A public read-only list of all the 'Language' enumerators.

** Generated **
Method Detail

values

public static final Language[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Language c : Language.values())
        System.out.println(c);

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

valueOf

public static Language 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 name

get

public static Language get(java.lang.String literal)
Returns the 'Language' literal with the specified literal value.

** Generated **

getByName

public static Language getByName(java.lang.String name)
Returns the 'Language' literal with the specified name.

** Generated **

get

public static Language get(int value)
Returns the 'Language' 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 java.lang.String getName()

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

getLiteral

public java.lang.String getLiteral()

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

toString

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

Overrides:
toString in class java.lang.Enum<Language>
** Generated **

Generation Framework

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.