Enum Class CollectionType
- All Implemented Interfaces:
Serializable
,Comparable<CollectionType>
,Constable
,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:
- Model:
- Generated:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe 'Bag' literal object.The 'Collection' literal object.The 'List' literal object.The 'None' literal object.The 'Set' literal object. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The 'Bag' literal value.static final int
The 'Collection' literal value.static final int
The 'List' literal value.static final int
The 'None' literal value.static final int
The 'Set' literal value.static final List<CollectionType>
A public read-only list of all the 'Collection Type' enumerators. -
Method Summary
Modifier and TypeMethodDescriptionstatic CollectionType
get
(int value) Returns the 'Collection Type' literal with the specified integer value.static CollectionType
Returns the 'Collection Type' literal with the specified literal value.static CollectionType
Returns the 'Collection Type' literal with the specified name.getName()
int
getValue()
toString()
Returns the literal value of the enumerator, which is its string representation.static CollectionType
Returns the enum constant of this class with the specified name.static CollectionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The 'None' literal object.- See Also:
- Generated:
- Ordered:
-
SET
The 'Set' literal object.- See Also:
- Generated:
- Ordered:
-
LIST
The 'List' literal object.- See Also:
- Generated:
- Ordered:
-
BAG
The 'Bag' literal object.- See Also:
- Generated:
- Ordered:
-
COLLECTION
The 'Collection' literal object.- See Also:
- Generated:
- Ordered:
-
-
Field Details
-
NONE_VALUE
public static final int NONE_VALUEThe 'None' literal value.- See Also:
- Model:
- name="None"
- Generated:
- Ordered:
-
SET_VALUE
public static final int SET_VALUEThe 'Set' literal value.- See Also:
- Model:
- name="Set"
- Generated:
- Ordered:
-
LIST_VALUE
public static final int LIST_VALUEThe 'List' literal value.- See Also:
- Model:
- name="List"
- Generated:
- Ordered:
-
BAG_VALUE
public static final int BAG_VALUEThe 'Bag' literal value.- See Also:
- Model:
- name="Bag"
- Generated:
- Ordered:
-
COLLECTION_VALUE
public static final int COLLECTION_VALUEThe 'Collection' literal value.- See Also:
- Model:
- name="Collection"
- Generated:
- Ordered:
-
VALUES
A public read-only list of all the 'Collection Type' enumerators.- Generated:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
get
Returns the 'Collection Type' literal with the specified literal value.- Parameters:
literal
- the literal.- Returns:
- the matching enumerator or
null
. - Generated:
-
getByName
Returns the 'Collection Type' literal with the specified name.- Parameters:
name
- the name.- Returns:
- the matching enumerator or
null
. - Generated:
-
get
Returns the 'Collection Type' literal with the specified integer value.- Parameters:
value
- the integer value.- Returns:
- the matching enumerator or
null
. - Generated:
-
getValue
public int getValue()- Specified by:
getValue
in interfaceorg.eclipse.emf.common.util.Enumerator
- Generated:
-
getName
- Specified by:
getName
in interfaceorg.eclipse.emf.common.util.Enumerator
- Generated:
-
getLiteral
- Specified by:
getLiteral
in interfaceorg.eclipse.emf.common.util.Enumerator
- Generated:
-
toString
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toString
in classEnum<CollectionType>
- Generated:
-