org.discotools.io.aprs.tnc
Enum TncState

java.lang.Object
  extended by java.lang.Enum<TncState>
      extended by org.discotools.io.aprs.tnc.TncState
All Implemented Interfaces:
Serializable, Comparable<TncState>

public enum TncState
extends Enum<TncState>


Enum Constant Summary
S_BATCH
          The 'S_BATCH' literal object.
S_COMMAND
          The 'S_COMMAND' literal object.
S_IDLE
          The 'S_IDLE' literal object.
S_OPEN
          The 'S_OPEN' literal object.
S_STEP
          The 'S_STEP' literal object.
 
Field Summary
static int S_BATCH_VALUE
          The 'S_BATCH' literal value.
static int S_COMMAND_VALUE
          The 'S_COMMAND' literal value.
static int S_IDLE_VALUE
          The 'S_IDLE' literal value.
static int S_OPEN_VALUE
          The 'S_OPEN' literal value.
static int S_STEP_VALUE
          The ' S_STEP' literal value.
static List<TncState> VALUES
          A public read-only list of all the 'TNC Packet Type' enumerators.
 
Method Summary
static TncState get(int value)
          Returns the 'TNC Packet Type' literal with the specified integer value.
static TncState get(String literal)
          Returns the 'TNC Packet Type' literal with the specified literal value.
static TncState getByName(String name)
          Returns the 'TNC Packet 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 TncState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TncState[] 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

S_IDLE

public static final TncState S_IDLE
The 'S_IDLE' literal object.

See Also:
S_IDLE_VALUE

S_OPEN

public static final TncState S_OPEN
The 'S_OPEN' literal object.

See Also:
S_OPEN

S_BATCH

public static final TncState S_BATCH
The 'S_BATCH' literal object.

See Also:
S_BATCH_VALUE

S_STEP

public static final TncState S_STEP
The 'S_STEP' literal object.

See Also:
S_STEP_VALUE

S_COMMAND

public static final TncState S_COMMAND
The 'S_COMMAND' literal object.

See Also:
S_COMMAND_VALUE
Field Detail

S_IDLE_VALUE

public static final int S_IDLE_VALUE
The 'S_IDLE' literal value.

See Also:
S_IDLE_VALUE, Constant Field Values

S_OPEN_VALUE

public static final int S_OPEN_VALUE
The 'S_OPEN' literal value.

See Also:
S_OPEN, Constant Field Values

S_BATCH_VALUE

public static final int S_BATCH_VALUE
The 'S_BATCH' literal value.

See Also:
S_BATCH, Constant Field Values

S_STEP_VALUE

public static final int S_STEP_VALUE
The ' S_STEP' literal value.

See Also:
S_STEP, Constant Field Values

S_COMMAND_VALUE

public static final int S_COMMAND_VALUE
The 'S_COMMAND' literal value.

See Also:
S_COMMAND, Constant Field Values

VALUES

public static final List<TncState> VALUES
A public read-only list of all the 'TNC Packet Type' enumerators.

Method Detail

values

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

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

valueOf

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


getByName

public static TncState getByName(String name)
Returns the 'TNC Packet Type' literal with the specified name.


get

public static TncState get(int value)
Returns the 'TNC Packet Type' literal with the specified integer value.


getValue

public int getValue()

getName

public String getName()

getLiteral

public String getLiteral()

toString

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

Overrides:
toString in class Enum<TncState>


Copyright © 2012-2013 DISCO Foundation. All Rights Reserved.