org.openxma.dsl.dom.model
Enum CollectionType

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

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

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

See Also:
org.openxma.dsl.dom.DomPackage#getCollectionType()

Enum Constant Summary
COLLECTION
          The 'COLLECTION' literal object.
LIST
          The 'LIST' literal object.
MAP
          The 'MAP' literal object.
NULL
          The 'NULL' literal object.
SET
          The 'SET' literal object.
 
Field Summary
static int COLLECTION_VALUE
          The 'COLLECTION' literal value.
static int LIST_VALUE
          The 'LIST' literal value.
static int MAP_VALUE
          The 'MAP' literal value.
static int NULL_VALUE
          The 'NULL' literal value.
static int SET_VALUE
          The 'SET' literal value.
static List<CollectionType> VALUES
          A public read-only list of all the 'Collection Type' enumerators.
 
Method Summary
static CollectionType get(int value)
          Returns the 'Collection Type' literal with the specified integer value.
static CollectionType get(String literal)
          Returns the 'Collection Type' literal with the specified literal value.
static CollectionType getByName(String name)
          Returns the 'Collection 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 CollectionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CollectionType[] 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 CollectionType NULL
The 'NULL' literal object.

See Also:
NULL_VALUE

COLLECTION

public static final CollectionType COLLECTION
The 'COLLECTION' literal object.

See Also:
COLLECTION_VALUE

SET

public static final CollectionType SET
The 'SET' literal object.

See Also:
SET_VALUE

LIST

public static final CollectionType LIST
The 'LIST' literal object.

See Also:
LIST_VALUE

MAP

public static final CollectionType MAP
The 'MAP' literal object.

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

COLLECTION_VALUE

public static final int COLLECTION_VALUE
The 'COLLECTION' literal value.

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

See Also:
COLLECTION, Constant Field Values

SET_VALUE

public static final int SET_VALUE
The 'SET' literal value.

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

See Also:
SET, Constant Field Values

LIST_VALUE

public static final int LIST_VALUE
The 'LIST' literal value.

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

See Also:
LIST, Constant Field Values

MAP_VALUE

public static final int MAP_VALUE
The 'MAP' literal value.

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

See Also:
MAP, Constant Field Values

VALUES

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

Method Detail

values

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

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

valueOf

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


getByName

public static CollectionType getByName(String name)
Returns the 'Collection Type' literal with the specified name.


get

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


Copyright © 2013. All Rights Reserved.