public enum Type extends Enum<Type> implements org.eclipse.emf.common.util.Enumerator
ProtocolPackage.getType()| Enum Constant and Description |
|---|
OPTIONAL
The 'OPTIONAL' literal object.
|
ORDERED
The 'ORDERED' literal object.
|
SCALAR
The 'SCALAR' literal object.
|
UNIQUE
The 'UNIQUE' literal object.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
OPTIONAL_VALUE
The 'OPTIONAL' literal value.
|
static int |
ORDERED_VALUE
The 'ORDERED' literal value.
|
static int |
SCALAR_VALUE
The 'SCALAR' literal value.
|
static int |
UNIQUE_VALUE
The 'UNIQUE' literal value.
|
static List<Type> |
VALUES
A public read-only list of all the 'Type' enumerators.
|
| Modifier and Type | Method and Description |
|---|---|
static Type |
get(int value)
Returns the 'Type' literal with the specified integer value.
|
static Type |
get(String literal)
Returns the 'Type' literal with the specified literal value.
|
static Type |
getByName(String name)
Returns the '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 Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type SCALAR
SCALAR_VALUEpublic static final Type OPTIONAL
OPTIONAL_VALUEpublic static final Type ORDERED
ORDERED_VALUEpublic static final Type UNIQUE
UNIQUE_VALUEpublic static final int SCALAR_VALUE
If the meaning of 'SCALAR' literal object isn't clear, there really should be more of a description here...
SCALAR,
Constant Field Valuespublic static final int OPTIONAL_VALUE
If the meaning of 'OPTIONAL' literal object isn't clear, there really should be more of a description here...
OPTIONAL,
Constant Field Valuespublic static final int ORDERED_VALUE
If the meaning of 'ORDERED' literal object isn't clear, there really should be more of a description here...
ORDERED,
Constant Field Valuespublic static final int UNIQUE_VALUE
If the meaning of 'UNIQUE' literal object isn't clear, there really should be more of a description here...
UNIQUE,
Constant Field Valuespublic static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Type get(String literal)
public static Type getByName(String name)
public static Type get(int value)
public int getValue()
getValue in interface org.eclipse.emf.common.util.Enumeratorpublic String getName()
getName in interface org.eclipse.emf.common.util.Enumeratorpublic String getLiteral()
getLiteral in interface org.eclipse.emf.common.util.EnumeratorCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.