org.eclipse.etrice.generator.etricegen
Enum PortKind

java.lang.Object
  extended by java.lang.Enum<PortKind>
      extended by org.eclipse.etrice.generator.etricegen.PortKind
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PortKind>

public enum PortKind
extends java.lang.Enum<PortKind>

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

See Also:
ETriceGenPackage.getPortKind()
EMF generated code
EMF model element

Enum Constant Summary
EXTERNAL
          The 'External' literal object.
INTERNAL
          The 'Internal' literal object.
RELAY
          The 'Relay' literal object.
 
Field Summary
static int EXTERNAL_VALUE
          The 'External' literal value.
static int INTERNAL_VALUE
          The 'Internal' literal value.
static int RELAY_VALUE
          The 'Relay' literal value.
static java.util.List<PortKind> VALUES
          A public read-only list of all the 'Port Kind' enumerators.
 
Method Summary
static PortKind get(int value)
          Returns the 'Port Kind' literal with the specified integer value.
static PortKind get(java.lang.String literal)
          Returns the 'Port Kind' literal with the specified literal value.
static PortKind getByName(java.lang.String name)
          Returns the 'Port Kind' literal with the specified name.
 java.lang.String getLiteral()
           
 java.lang.String getName()
           
 int getValue()
           
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation.
static PortKind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PortKind[] 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

EXTERNAL

public static final PortKind EXTERNAL
The 'External' literal object.

See Also:
EXTERNAL_VALUE
EMF generated code
EMF ordered

INTERNAL

public static final PortKind INTERNAL
The 'Internal' literal object.

See Also:
INTERNAL_VALUE
EMF generated code
EMF ordered

RELAY

public static final PortKind RELAY
The 'Relay' literal object.

See Also:
RELAY_VALUE
EMF generated code
EMF ordered
Field Detail

EXTERNAL_VALUE

public static final int EXTERNAL_VALUE
The 'External' literal value.

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

See Also:
EXTERNAL, Constant Field Values
EMF generated code
EMF model element
name="external"
EMF ordered

INTERNAL_VALUE

public static final int INTERNAL_VALUE
The 'Internal' literal value.

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

See Also:
INTERNAL, Constant Field Values
EMF generated code
EMF model element
name="internal"
EMF ordered

RELAY_VALUE

public static final int RELAY_VALUE
The 'Relay' literal value.

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

See Also:
RELAY, Constant Field Values
EMF generated code
EMF model element
name="relay"
EMF ordered

VALUES

public static final java.util.List<PortKind> VALUES
A public read-only list of all the 'Port Kind' enumerators.

EMF generated code
Method Detail

values

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

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

valueOf

public static PortKind valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

get

public static PortKind get(java.lang.String literal)
Returns the 'Port Kind' literal with the specified literal value.

EMF generated code

getByName

public static PortKind getByName(java.lang.String name)
Returns the 'Port Kind' literal with the specified name.

EMF generated code

get

public static PortKind get(int value)
Returns the 'Port Kind' literal with the specified integer value.

EMF generated code

getValue

public int getValue()

EMF generated code

getName

public java.lang.String getName()

EMF generated code

getLiteral

public java.lang.String getLiteral()

EMF generated code

toString

public java.lang.String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class java.lang.Enum<PortKind>
EMF generated code