org.eclipse.gmf.codegen.gmfgen
Enum JFaceFont

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

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

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

See Also:
GMFGenPackage.getJFaceFont()

Enum Constant Summary
BANNER_LITERAL
          The 'Banner' literal object.
DEFAULT_LITERAL
          The 'Default' literal object.
DIALOG_LITERAL
          The 'Dialog' literal object.
HEADER_LITERAL
          The 'Header' literal object.
TEXT_LITERAL
          The 'Text' literal object.
 
Field Summary
static int BANNER
          The 'Banner' literal value.
static int DEFAULT
          The 'Default' literal value.
static int DIALOG
          The 'Dialog' literal value.
static int HEADER
          The 'Header' literal value.
static int TEXT
          The 'Text' literal value.
static List<JFaceFont> VALUES
          A public read-only list of all the 'JFace Font' enumerators.
 
Method Summary
static JFaceFont get(int value)
          Returns the 'JFace Font' literal with the specified integer value.
static JFaceFont get(String literal)
          Returns the 'JFace Font' literal with the specified literal value.
static JFaceFont getByName(String name)
          Returns the 'JFace Font' 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 JFaceFont valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JFaceFont[] 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

DEFAULT_LITERAL

public static final JFaceFont DEFAULT_LITERAL
The 'Default' literal object.

See Also:
DEFAULT

TEXT_LITERAL

public static final JFaceFont TEXT_LITERAL
The 'Text' literal object.

See Also:
TEXT

BANNER_LITERAL

public static final JFaceFont BANNER_LITERAL
The 'Banner' literal object.

See Also:
BANNER

DIALOG_LITERAL

public static final JFaceFont DIALOG_LITERAL
The 'Dialog' literal object.

See Also:
DIALOG

HEADER_LITERAL

public static final JFaceFont HEADER_LITERAL
The 'Header' literal object.

See Also:
HEADER
Field Detail

DEFAULT

public static final int DEFAULT
The 'Default' literal value.

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

See Also:
DEFAULT_LITERAL, Constant Field Values

TEXT

public static final int TEXT
The 'Text' literal value.

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

See Also:
TEXT_LITERAL, Constant Field Values

BANNER

public static final int BANNER
The 'Banner' literal value.

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

See Also:
BANNER_LITERAL, Constant Field Values

DIALOG

public static final int DIALOG
The 'Dialog' literal value.

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

See Also:
DIALOG_LITERAL, Constant Field Values

HEADER

public static final int HEADER
The 'Header' literal value.

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

See Also:
HEADER_LITERAL, Constant Field Values

VALUES

public static final List<JFaceFont> VALUES
A public read-only list of all the 'JFace Font' enumerators.

Method Detail

values

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

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

valueOf

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


getByName

public static JFaceFont getByName(String name)
Returns the 'JFace Font' literal with the specified name.


get

public static JFaceFont get(int value)
Returns the 'JFace Font' 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<JFaceFont>


Copyright © 2011. All Rights Reserved.