core.types
Class SearchType

java.lang.Object
  extended bycore.types.SearchType

public final class SearchType
extends java.lang.Object

Adapted from Adam's PresenceType.java

Author:
schmitth

Field Summary
static SearchType ERROR
           
static SearchType GET
           
 int ord
           
static SearchType RESULT
           
 
Method Summary
static java.util.Enumeration elements()
          Creates an enumeration from all available types.
static SearchType first()
           
static SearchType last()
           
 SearchType next()
           
 SearchType prev()
           
static int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ord

public final int ord

GET

public static final SearchType GET

RESULT

public static final SearchType RESULT

ERROR

public static final SearchType ERROR
Method Detail

elements

public static java.util.Enumeration elements()
Creates an enumeration from all available types.

Returns:
the Enumeration

toString

public java.lang.String toString()
Returns:
String representation of this type

size

public static int size()
Returns:
Number of types available

first

public static SearchType first()
Returns:
first element of an Enumeration of SearchTypes

last

public static SearchType last()
Returns:
last element of an Enumeration of SearchTypes

prev

public SearchType prev()
Returns:
previous element of an Enumeration of SearchTypes

next

public SearchType next()
Returns:
next element of an Enumeration of SearchTypes