edu.wisc.ssec.mcidasv.servermanager
Enum AddeEntry.EntryValidity

java.lang.Object
  extended by java.lang.Enum<AddeEntry.EntryValidity>
      extended by edu.wisc.ssec.mcidasv.servermanager.AddeEntry.EntryValidity
All Implemented Interfaces:
Serializable, Comparable<AddeEntry.EntryValidity>
Enclosing interface:
AddeEntry

public static enum AddeEntry.EntryValidity
extends Enum<AddeEntry.EntryValidity>

Sort of a "misc" status field...


Enum Constant Summary
DELETED
          User has elected to remove this entry.
INVALID
          Entry is invalid in some way.
UNVERIFIED
          Unknown whether or not this entry actually works.
VALIDATING
          Entry is being checked for validity.
VERIFIED
          Entry has been verified by connecting to the server.
 
Method Summary
static AddeEntry.EntryValidity fromStr(String str)
           
static String toStr(AddeEntry.EntryValidity validity)
           
static AddeEntry.EntryValidity valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AddeEntry.EntryValidity[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

VERIFIED

public static final AddeEntry.EntryValidity VERIFIED
Entry has been verified by connecting to the server.


UNVERIFIED

public static final AddeEntry.EntryValidity UNVERIFIED
Unknown whether or not this entry actually works.


VALIDATING

public static final AddeEntry.EntryValidity VALIDATING
Entry is being checked for validity.


DELETED

public static final AddeEntry.EntryValidity DELETED
User has elected to remove this entry. This is an unfortunate "special case", as we can't simply remove these entries from a list! Say the user import entries from a remote MCTABLE file and later deleted some of the imported entries. Fine, good! But what should happen if the user hears that new servers have been added to that same MCTABLE file? The entries that the user has deleted locally should not reappear, right?


INVALID

public static final AddeEntry.EntryValidity INVALID
Entry is invalid in some way.

Method Detail

values

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

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

valueOf

public static AddeEntry.EntryValidity 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

fromStr

public static AddeEntry.EntryValidity fromStr(String str)

toStr

public static String toStr(AddeEntry.EntryValidity validity)