org.eclipse.emf.emfstore.internal.server.model.versioning.operations
Enum UnsetType

java.lang.Object
  extended by java.lang.Enum<UnsetType>
      extended by org.eclipse.emf.emfstore.internal.server.model.versioning.operations.UnsetType
All Implemented Interfaces:
Serializable, Comparable<UnsetType>, org.eclipse.emf.common.util.Enumerator

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

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

See Also:
OperationsPackage.getUnsetType()

Enum Constant Summary
IS_UNSET
          The 'IS UNSET' literal object.
NONE
          The 'NONE' literal object.
WAS_UNSET
          The 'WAS UNSET' literal object.
 
Field Summary
static int IS_UNSET_VALUE
          The 'IS UNSET' literal value.
static int NONE_VALUE
          The 'NONE' literal value.
static List<UnsetType> VALUES
          A public read-only list of all the 'Unset Type' enumerators.
static int WAS_UNSET_VALUE
          The 'WAS UNSET' literal value.
 
Method Summary
static UnsetType get(int value)
          Returns the 'Unset Type' literal with the specified integer value.
static UnsetType get(String literal)
          Returns the 'Unset Type' literal with the specified literal value.
static UnsetType getByName(String name)
          Returns the 'Unset 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 UnsetType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UnsetType[] 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

NONE

public static final UnsetType NONE
The 'NONE' literal object.

See Also:
NONE_VALUE

IS_UNSET

public static final UnsetType IS_UNSET
The 'IS UNSET' literal object.

See Also:
IS_UNSET_VALUE

WAS_UNSET

public static final UnsetType WAS_UNSET
The 'WAS UNSET' literal object.

See Also:
WAS_UNSET_VALUE
Field Detail

NONE_VALUE

public static final int NONE_VALUE
The 'NONE' literal value.

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

See Also:
NONE, Constant Field Values

IS_UNSET_VALUE

public static final int IS_UNSET_VALUE
The 'IS UNSET' literal value.

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

See Also:
IS_UNSET, Constant Field Values

WAS_UNSET_VALUE

public static final int WAS_UNSET_VALUE
The 'WAS UNSET' literal value.

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

See Also:
WAS_UNSET, Constant Field Values

VALUES

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

Method Detail

values

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

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

valueOf

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


getByName

public static UnsetType getByName(String name)
Returns the 'Unset Type' literal with the specified name.


get

public static UnsetType get(int value)
Returns the 'Unset Type' 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<UnsetType>


Copyright © 2015. All Rights Reserved.