org.discotools.io.aprs
Enum AprsExtensionType

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

public enum AprsExtensionType
extends Enum<AprsExtensionType>


Enum Constant Summary
T_DIRECTION
          The 'T_DIRECTION' literal object.
T_NONE
          The 'T_NONE' literal object.
 
Field Summary
static int T_DIRECTION_VALUE
          The 'T_DIRECTION' literal value.
static int T_NONE_VALUE
          The 'T_NONE' literal value.
static List<AprsExtensionType> VALUES
          A public read-only list of all the 'APRS Extension Type' enumerators.
 
Method Summary
static AprsExtensionType get(int value)
          Returns the 'APRS Extension Type' literal with the specified integer value.
static AprsExtensionType get(String literal)
          Returns the 'APRS Extension Type' literal with the specified literal value.
static AprsExtensionType getByName(String name)
          Returns the 'APRS Extension 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 AprsExtensionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AprsExtensionType[] 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_NONE

public static final AprsExtensionType T_NONE
The 'T_NONE' literal object.

See Also:
T_NONE_VALUE

T_DIRECTION

public static final AprsExtensionType T_DIRECTION
The 'T_DIRECTION' literal object.

See Also:
T_DIRECTION_VALUE
Field Detail

T_NONE_VALUE

public static final int T_NONE_VALUE
The 'T_NONE' literal value.

See Also:
T_NONE_VALUE, Constant Field Values

T_DIRECTION_VALUE

public static final int T_DIRECTION_VALUE
The 'T_DIRECTION' literal value.

See Also:
T_DIRECTION, Constant Field Values

VALUES

public static final List<AprsExtensionType> VALUES
A public read-only list of all the 'APRS Extension Type' enumerators.

Method Detail

values

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

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

valueOf

public static AprsExtensionType 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 AprsExtensionType get(String literal)
Returns the 'APRS Extension Type' literal with the specified literal value.


getByName

public static AprsExtensionType getByName(String name)
Returns the 'APRS Extension Type' literal with the specified name.


get

public static AprsExtensionType get(int value)
Returns the 'APRS Extension 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<AprsExtensionType>


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