EGF Engine
Release 0.1.0

org.eclipse.egf.model
Enum ViewpointType

java.lang.Object
  extended by java.lang.Enum<ViewpointType>
      extended by org.eclipse.egf.model.ViewpointType
All Implemented Interfaces:
Serializable, Comparable<ViewpointType>

public enum ViewpointType
extends Enum<ViewpointType>

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

See Also:
ModelPackage.getViewpointType()

Enum Constant Summary
CONTRACT
          The 'CONTRACT' literal object
MAPPING
          The 'MAPPING' literal object
PATTERN
          The 'PATTERN' literal object
 
Field Summary
static int CONTRACT_VALUE
          The 'CONTRACT' literal value
static int MAPPING_VALUE
          The 'MAPPING' literal value
static int PATTERN_VALUE
          The 'PATTERN' literal value
static List<ViewpointType> VALUES
          A public read-only list of all the 'Viewpoint Type' enumerators
 
Method Summary
static ViewpointType get(int value)
          Returns the 'Viewpoint Type' literal with the specified integer value
static ViewpointType get(String literal)
          Returns the 'Viewpoint Type' literal with the specified literal value
static ViewpointType getByName(String name)
          Returns the 'Viewpoint Type' 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 ViewpointType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ViewpointType[] 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

CONTRACT

public static final ViewpointType CONTRACT
The 'CONTRACT' literal object.

See Also:
CONTRACT_VALUE

PATTERN

public static final ViewpointType PATTERN
The 'PATTERN' literal object.

See Also:
PATTERN_VALUE

MAPPING

public static final ViewpointType MAPPING
The 'MAPPING' literal object.

See Also:
MAPPING_VALUE
Field Detail

CONTRACT_VALUE

public static final int CONTRACT_VALUE
The 'CONTRACT' literal value.

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

See Also:
CONTRACT, Constant Field Values

PATTERN_VALUE

public static final int PATTERN_VALUE
The 'PATTERN' literal value.

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

See Also:
PATTERN, Constant Field Values

MAPPING_VALUE

public static final int MAPPING_VALUE
The 'MAPPING' literal value.

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

See Also:
MAPPING, Constant Field Values

VALUES

public static final List<ViewpointType> VALUES
A public read-only list of all the 'Viewpoint Type' enumerators.

Method Detail

values

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

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

valueOf

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


getByName

public static ViewpointType getByName(String name)
Returns the 'Viewpoint Type' literal with the specified name.


get

public static ViewpointType get(int value)
Returns the 'Viewpoint Type' literal with the specified integer value.


getValue

public int getValue()


getName

public String getName()


getLiteral

public String getLiteral()


toString

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

Overrides:
toString in class Enum<ViewpointType>

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.