org.openxma.dsl.dom.model
Enum DataBaseConstraintType

java.lang.Object
  extended by java.lang.Enum<DataBaseConstraintType>
      extended by org.openxma.dsl.dom.model.DataBaseConstraintType
All Implemented Interfaces:
Serializable, Comparable<DataBaseConstraintType>, org.eclipse.emf.common.util.Enumerator

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

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

See Also:
DomPackage.getDataBaseConstraintType()

Enum Constant Summary
INDEX
          The 'INDEX' literal object.
NATURAL
          The 'NATURAL' literal object.
NULL
          The 'NULL' literal object.
PRIMARY
          The 'PRIMARY' literal object.
UNIQUE
          The 'UNIQUE' literal object.
 
Field Summary
static int INDEX_VALUE
          The 'INDEX' literal value.
static int NATURAL_VALUE
          The 'NATURAL' literal value.
static int NULL_VALUE
          The 'NULL' literal value.
static int PRIMARY_VALUE
          The 'PRIMARY' literal value.
static int UNIQUE_VALUE
          The 'UNIQUE' literal value.
static List<DataBaseConstraintType> VALUES
          A public read-only list of all the 'Data Base Constraint Type' enumerators.
 
Method Summary
static DataBaseConstraintType get(int value)
          Returns the 'Data Base Constraint Type' literal with the specified integer value.
static DataBaseConstraintType get(String literal)
          Returns the 'Data Base Constraint Type' literal with the specified literal value.
static DataBaseConstraintType getByName(String name)
          Returns the 'Data Base Constraint 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 DataBaseConstraintType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataBaseConstraintType[] 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

NULL

public static final DataBaseConstraintType NULL
The 'NULL' literal object.

See Also:
NULL_VALUE

INDEX

public static final DataBaseConstraintType INDEX
The 'INDEX' literal object.

See Also:
INDEX_VALUE

UNIQUE

public static final DataBaseConstraintType UNIQUE
The 'UNIQUE' literal object.

See Also:
UNIQUE_VALUE

NATURAL

public static final DataBaseConstraintType NATURAL
The 'NATURAL' literal object.

See Also:
NATURAL_VALUE

PRIMARY

public static final DataBaseConstraintType PRIMARY
The 'PRIMARY' literal object.

See Also:
PRIMARY_VALUE
Field Detail

NULL_VALUE

public static final int NULL_VALUE
The 'NULL' literal value.

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

See Also:
NULL, Constant Field Values

INDEX_VALUE

public static final int INDEX_VALUE
The 'INDEX' literal value.

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

See Also:
INDEX, Constant Field Values

UNIQUE_VALUE

public static final int UNIQUE_VALUE
The 'UNIQUE' literal value.

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

See Also:
UNIQUE, Constant Field Values

NATURAL_VALUE

public static final int NATURAL_VALUE
The 'NATURAL' literal value.

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

See Also:
NATURAL, Constant Field Values

PRIMARY_VALUE

public static final int PRIMARY_VALUE
The 'PRIMARY' literal value.

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

See Also:
PRIMARY, Constant Field Values

VALUES

public static final List<DataBaseConstraintType> VALUES
A public read-only list of all the 'Data Base Constraint Type' enumerators.

Method Detail

values

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

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

valueOf

public static DataBaseConstraintType 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 DataBaseConstraintType get(String literal)
Returns the 'Data Base Constraint Type' literal with the specified literal value.


getByName

public static DataBaseConstraintType getByName(String name)
Returns the 'Data Base Constraint Type' literal with the specified name.


get

public static DataBaseConstraintType get(int value)
Returns the 'Data Base Constraint 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<DataBaseConstraintType>


Copyright © 2013. All Rights Reserved.