org.lwes
Class TypeID

java.lang.Object
  extended by org.lwes.TypeID

public class TypeID
extends java.lang.Object

This class contains some global variables used in various parts of the event system.

Author:
Anthony Molinaro, Michael P. Lum

Field Summary
static java.lang.String BOOLEAN_REGEX
          This is a regular expression for matching a boolean from a string
static java.lang.String BOOLEAN_STRING
          The string used by boolean in the Event Serialization Protocol
static byte BOOLEAN_TOKEN
          The token used by boolean in the Event Serialization Protocol
static java.lang.String HEX_INT_REGEX
          This is a regular expression for matching a hexidecimal int from a string
static java.lang.String HEX_LONG_REGEX
          This is a regular expression for matching a hexidecimal long from a string
static java.lang.String HEX_SHORT_REGEX
          This is a regular expression for matching a hexidecimal short from a string
static java.lang.String INT16_STRING
          The string used by int16 in the Event Serialization Protocol
static byte INT16_TOKEN
          The token used by int16 in the Event Serialization Protocol
static java.lang.String INT32_STRING
          The string used by int32 in the Event Serialization Protocol
static byte INT32_TOKEN
          The token used by int32 in the Event Serialization Protocol
static java.lang.String INT64_STRING
          The string used by int64 in the Event Serialization Protocol
static byte INT64_TOKEN
          The token used by int64 in the Event Serialization Protocol
static java.lang.String IP_ADDR_REGEX
          This is a regular expression for matching an ip address from a string
static java.lang.String IPADDR_STRING
          The string used by ip_addr in the Event Serialization Protocol
static byte IPADDR_TOKEN
          The token used by ip_addr in the Event Serialization Protocol
static java.lang.String SIGNED_INTEGER_REGEX
          This is a regular expression for parsing an integer number from a string
static java.lang.String STRING_STRING
          The string used by string in the Event Serialization Protocol
static byte STRING_TOKEN
          The token used by string in the Event Serialization Protocol
static java.lang.String UINT16_STRING
          The string used by uint16 in the Event Serialization Protocol
static byte UINT16_TOKEN
          The token used by uint16 in the Event Serialization Protocol
static java.lang.String UINT32_STRING
          The string used by uint32 in the Event Serialization Protocol
static byte UINT32_TOKEN
          The token used by uint32 in the Event Serialization Protocol
static java.lang.String UINT64_STRING
          The string used by uint64 in the Event Serialization Protocol
static byte UINT64_TOKEN
          The token used by uint64 in the Event Serialization Protocol
static byte UNDEFINED_TOKEN
          The token used for undefined types in LWES
static java.lang.String UNSIGNED_INTEGER_REGEX
          This is a regular expression for parsing an unsigned integer number from a string
 
Constructor Summary
TypeID()
           
 
Method Summary
static java.lang.String byteIDToString(byte id)
          Simple conversion utility
static byte stringToByteID(java.lang.String id)
          Another conversion utility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDEFINED_TOKEN

public static final byte UNDEFINED_TOKEN
The token used for undefined types in LWES

See Also:
Constant Field Values

UINT16_TOKEN

public static final byte UINT16_TOKEN
The token used by uint16 in the Event Serialization Protocol

See Also:
Constant Field Values

INT16_TOKEN

public static final byte INT16_TOKEN
The token used by int16 in the Event Serialization Protocol

See Also:
Constant Field Values

UINT32_TOKEN

public static final byte UINT32_TOKEN
The token used by uint32 in the Event Serialization Protocol

See Also:
Constant Field Values

INT32_TOKEN

public static final byte INT32_TOKEN
The token used by int32 in the Event Serialization Protocol

See Also:
Constant Field Values

STRING_TOKEN

public static final byte STRING_TOKEN
The token used by string in the Event Serialization Protocol

See Also:
Constant Field Values

IPADDR_TOKEN

public static final byte IPADDR_TOKEN
The token used by ip_addr in the Event Serialization Protocol

See Also:
Constant Field Values

INT64_TOKEN

public static final byte INT64_TOKEN
The token used by int64 in the Event Serialization Protocol

See Also:
Constant Field Values

UINT64_TOKEN

public static final byte UINT64_TOKEN
The token used by uint64 in the Event Serialization Protocol

See Also:
Constant Field Values

BOOLEAN_TOKEN

public static final byte BOOLEAN_TOKEN
The token used by boolean in the Event Serialization Protocol

See Also:
Constant Field Values

UINT16_STRING

public static final java.lang.String UINT16_STRING
The string used by uint16 in the Event Serialization Protocol

See Also:
Constant Field Values

INT16_STRING

public static final java.lang.String INT16_STRING
The string used by int16 in the Event Serialization Protocol

See Also:
Constant Field Values

UINT32_STRING

public static final java.lang.String UINT32_STRING
The string used by uint32 in the Event Serialization Protocol

See Also:
Constant Field Values

INT32_STRING

public static final java.lang.String INT32_STRING
The string used by int32 in the Event Serialization Protocol

See Also:
Constant Field Values

STRING_STRING

public static final java.lang.String STRING_STRING
The string used by string in the Event Serialization Protocol

See Also:
Constant Field Values

IPADDR_STRING

public static final java.lang.String IPADDR_STRING
The string used by ip_addr in the Event Serialization Protocol

See Also:
Constant Field Values

INT64_STRING

public static final java.lang.String INT64_STRING
The string used by int64 in the Event Serialization Protocol

See Also:
Constant Field Values

UINT64_STRING

public static final java.lang.String UINT64_STRING
The string used by uint64 in the Event Serialization Protocol

See Also:
Constant Field Values

BOOLEAN_STRING

public static final java.lang.String BOOLEAN_STRING
The string used by boolean in the Event Serialization Protocol

See Also:
Constant Field Values

SIGNED_INTEGER_REGEX

public static final java.lang.String SIGNED_INTEGER_REGEX
This is a regular expression for parsing an integer number from a string

See Also:
Constant Field Values

UNSIGNED_INTEGER_REGEX

public static final java.lang.String UNSIGNED_INTEGER_REGEX
This is a regular expression for parsing an unsigned integer number from a string

See Also:
Constant Field Values

HEX_SHORT_REGEX

public static final java.lang.String HEX_SHORT_REGEX
This is a regular expression for matching a hexidecimal short from a string

See Also:
Constant Field Values

HEX_INT_REGEX

public static final java.lang.String HEX_INT_REGEX
This is a regular expression for matching a hexidecimal int from a string

See Also:
Constant Field Values

HEX_LONG_REGEX

public static final java.lang.String HEX_LONG_REGEX
This is a regular expression for matching a hexidecimal long from a string

See Also:
Constant Field Values

IP_ADDR_REGEX

public static final java.lang.String IP_ADDR_REGEX
This is a regular expression for matching an ip address from a string

See Also:
Constant Field Values

BOOLEAN_REGEX

public static final java.lang.String BOOLEAN_REGEX
This is a regular expression for matching a boolean from a string

See Also:
Constant Field Values
Constructor Detail

TypeID

public TypeID()
Method Detail

byteIDToString

public static java.lang.String byteIDToString(byte id)
Simple conversion utility


stringToByteID

public static byte stringToByteID(java.lang.String id)
Another conversion utility