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

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

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

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

See Also:
OperationsPackage.getContainmentType()

Enum Constant Summary
CONTAINER
          The 'CONTAINER' literal object.
CONTAINMENT
          The 'CONTAINMENT' literal object.
NONE
          The 'NONE' literal object.
 
Field Summary
static int CONTAINER_VALUE
          The 'CONTAINER' literal value.
static int CONTAINMENT_VALUE
          The 'CONTAINMENT' literal value.
static int NONE_VALUE
          The 'NONE' literal value.
static List<ContainmentType> VALUES
          A public read-only list of all the 'Containment Type' enumerators.
 
Method Summary
static ContainmentType get(int value)
          Returns the 'Containment Type' literal with the specified integer value.
static ContainmentType get(String literal)
          Returns the 'Containment Type' literal with the specified literal value.
static ContainmentType getByName(String name)
          Returns the 'Containment 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 ContainmentType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ContainmentType[] 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 ContainmentType NONE
The 'NONE' literal object.

See Also:
NONE_VALUE

CONTAINER

public static final ContainmentType CONTAINER
The 'CONTAINER' literal object.

See Also:
CONTAINER_VALUE

CONTAINMENT

public static final ContainmentType CONTAINMENT
The 'CONTAINMENT' literal object.

See Also:
CONTAINMENT_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

CONTAINER_VALUE

public static final int CONTAINER_VALUE
The 'CONTAINER' literal value.

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

See Also:
CONTAINER, Constant Field Values

CONTAINMENT_VALUE

public static final int CONTAINMENT_VALUE
The 'CONTAINMENT' literal value.

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

See Also:
CONTAINMENT, Constant Field Values

VALUES

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

Method Detail

values

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

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

valueOf

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


getByName

public static ContainmentType getByName(String name)
Returns the 'Containment Type' literal with the specified name.


get

public static ContainmentType get(int value)
Returns the 'Containment 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<ContainmentType>


Copyright © 2015. All Rights Reserved.