org.discotools.io.aprs.tnc
Enum TncModeType

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

public enum TncModeType
extends Enum<TncModeType>


Enum Constant Summary
T_KISS
          The 'T_KISS' literal object.
T_TERMINAL
          The 'T_TERMINAL' literal object.
T_UNKNOWN
          The 'T_UNKNOWN' literal object.
 
Field Summary
static int T_KISS_VALUE
          The 'T_KISS' literal value.
static int T_TERMINAL_VALUE
          The 'T_TERMINAL' literal value.
static int T_UNKNOWN_VALUE
          The 'T_UNKNOWN' literal value.
static List<TncModeType> VALUES
          A public read-only list of all the 'TNC Packet Type' enumerators.
 
Method Summary
static TncModeType get(int value)
          Returns the 'TNC Packet Type' literal with the specified integer value.
static TncModeType get(String literal)
          Returns the 'TNC Packet Type' literal with the specified literal value.
static TncModeType 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 TncModeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TncModeType[] 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

T_UNKNOWN

public static final TncModeType T_UNKNOWN
The 'T_UNKNOWN' literal object.

See Also:
T_UNKNOWN_VALUE

T_TERMINAL

public static final TncModeType T_TERMINAL
The 'T_TERMINAL' literal object.

See Also:
T_TERMINAL

T_KISS

public static final TncModeType T_KISS
The 'T_KISS' literal object.

See Also:
T_KISS_VALUE
Field Detail

T_UNKNOWN_VALUE

public static final int T_UNKNOWN_VALUE
The 'T_UNKNOWN' literal value.

See Also:
T_UNKNOWN_VALUE, Constant Field Values

T_TERMINAL_VALUE

public static final int T_TERMINAL_VALUE
The 'T_TERMINAL' literal value.

See Also:
T_TERMINAL, Constant Field Values

T_KISS_VALUE

public static final int T_KISS_VALUE
The 'T_KISS' literal value.

See Also:
T_KISS, Constant Field Values

VALUES

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

Method Detail

values

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

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

valueOf

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


getByName

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


get

public static TncModeType 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<TncModeType>


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