org.eclipse.jpt.eclipselink.core.resource.orm
Enum ExistenceType

java.lang.Object
  extended by java.lang.Enum<ExistenceType>
      extended by org.eclipse.jpt.eclipselink.core.resource.orm.ExistenceType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ExistenceType>, org.eclipse.emf.common.util.Enumerator

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

A representation of the literals of the enumeration 'Existence Type', and utility methods for working with them. Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
2.1
Version:
2.1
See Also:
EclipseLinkOrmPackage.getExistenceType()

Enum Constant Summary
ASSUME_EXISTENCE
          The 'ASSUME EXISTENCE' literal object.
ASSUME_NON_EXISTENCE
          The 'ASSUME NON EXISTENCE' literal object.
CHECK_CACHE
          The 'CHECK CACHE' literal object.
CHECK_DATABASE
          The 'CHECK DATABASE' literal object.
 
Field Summary
static int ASSUME_EXISTENCE_VALUE
          The 'ASSUME EXISTENCE' literal value.
static int ASSUME_NON_EXISTENCE_VALUE
          The 'ASSUME NON EXISTENCE' literal value.
static int CHECK_CACHE_VALUE
          The 'CHECK CACHE' literal value.
static int CHECK_DATABASE_VALUE
          The 'CHECK DATABASE' literal value.
static java.util.List<ExistenceType> VALUES
          A public read-only list of all the 'Existence Type' enumerators.
 
Method Summary
static ExistenceType get(int value)
          Returns the 'Existence Type' literal with the specified integer value.
static ExistenceType get(java.lang.String literal)
          Returns the 'Existence Type' literal with the specified literal value.
static ExistenceType getByName(java.lang.String name)
          Returns the 'Existence Type' 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 ExistenceType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ExistenceType[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

CHECK_CACHE

public static final ExistenceType CHECK_CACHE
The 'CHECK CACHE' literal object.

See Also:
CHECK_CACHE_VALUE

CHECK_DATABASE

public static final ExistenceType CHECK_DATABASE
The 'CHECK DATABASE' literal object.

See Also:
CHECK_DATABASE_VALUE

ASSUME_EXISTENCE

public static final ExistenceType ASSUME_EXISTENCE
The 'ASSUME EXISTENCE' literal object.

See Also:
ASSUME_EXISTENCE_VALUE

ASSUME_NON_EXISTENCE

public static final ExistenceType ASSUME_NON_EXISTENCE
The 'ASSUME NON EXISTENCE' literal object.

See Also:
ASSUME_NON_EXISTENCE_VALUE
Field Detail

CHECK_CACHE_VALUE

public static final int CHECK_CACHE_VALUE
The 'CHECK CACHE' literal value.

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

See Also:
CHECK_CACHE, Constant Field Values

CHECK_DATABASE_VALUE

public static final int CHECK_DATABASE_VALUE
The 'CHECK DATABASE' literal value.

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

See Also:
CHECK_DATABASE, Constant Field Values

ASSUME_EXISTENCE_VALUE

public static final int ASSUME_EXISTENCE_VALUE
The 'ASSUME EXISTENCE' literal value.

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

See Also:
ASSUME_EXISTENCE, Constant Field Values

ASSUME_NON_EXISTENCE_VALUE

public static final int ASSUME_NON_EXISTENCE_VALUE
The 'ASSUME NON EXISTENCE' literal value.

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

See Also:
ASSUME_NON_EXISTENCE, Constant Field Values

VALUES

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

Method Detail

values

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

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

valueOf

public static ExistenceType 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 ExistenceType get(java.lang.String literal)
Returns the 'Existence Type' literal with the specified literal value.


getByName

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


get

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


getValue

public int getValue()

Specified by:
getValue in interface org.eclipse.emf.common.util.Enumerator

getName

public java.lang.String getName()

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

getLiteral

public java.lang.String getLiteral()

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

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<ExistenceType>