public enum ProtocolType extends Enum<ProtocolType> implements org.eclipse.emf.common.util.Enumerator
ModbusPackage.getProtocolType()
Enum Constant and Description |
---|
RTU
The 'RTU' literal object.
|
TCP
The 'TCP' literal object.
|
Modifier and Type | Field and Description |
---|---|
static int |
RTU_VALUE
The 'RTU' literal value.
|
static int |
TCP_VALUE
The 'TCP' literal value.
|
static List<ProtocolType> |
VALUES
A public read-only list of all the 'Protocol Type' enumerators.
|
Modifier and Type | Method and Description |
---|---|
static ProtocolType |
get(int value)
Returns the 'Protocol Type' literal with the specified integer value.
|
static ProtocolType |
get(String literal)
Returns the 'Protocol Type' literal with the specified literal value.
|
static ProtocolType |
getByName(String name)
Returns the 'Protocol 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 ProtocolType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolType TCP
TCP_VALUE
public static final ProtocolType RTU
RTU_VALUE
public static final int TCP_VALUE
If the meaning of 'TCP' literal object isn't clear, there really should be more of a description here...
TCP
,
Constant Field Valuespublic static final int RTU_VALUE
If the meaning of 'RTU' literal object isn't clear, there really should be more of a description here...
RTU
,
Constant Field Valuespublic static final List<ProtocolType> VALUES
public static ProtocolType[] values()
for (ProtocolType c : ProtocolType.values()) System.out.println(c);
public static ProtocolType 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 ProtocolType get(String literal)
public static ProtocolType getByName(String name)
public static ProtocolType get(int value)
public int getValue()
getValue
in interface org.eclipse.emf.common.util.Enumerator
public String getName()
getName
in interface org.eclipse.emf.common.util.Enumerator
public String getLiteral()
getLiteral
in interface org.eclipse.emf.common.util.Enumerator
public String toString()
toString
in class Enum<ProtocolType>