org.opennfc.se
Enum SeSlot.SwpStatus

Object
  extended by Enum<SeSlot.SwpStatus>
      extended by org.opennfc.se.SeSlot.SwpStatus
All Implemented Interfaces:
Serializable, Comparable<SeSlot.SwpStatus>
Enclosing interface:
SeSlot

public static enum SeSlot.SwpStatus
extends Enum<SeSlot.SwpStatus>

The SwpStatus enumeration

Since:
Open NFC 4.3.1

Enum Constant Summary
ACTIVE
          SWP link status: The SWP link is active.
DOWN
          SWP link status: The SWP line is down.
ERROR
          SWP link status: The link is in error.
INITIALIZATION
          SWP link status: The SWP link is initializing.
NO_CONNECTION
          SWP link status: The slot is not connected to a SWP line.
NO_SE
          SWP link status: The SE is not present or is not responding.
 
Method Summary
 int getValue()
          Returns the status value.
static SeSlot.SwpStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SeSlot.SwpStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_CONNECTION

public static final SeSlot.SwpStatus NO_CONNECTION
SWP link status: The slot is not connected to a SWP line.


NO_SE

public static final SeSlot.SwpStatus NO_SE
SWP link status: The SE is not present or is not responding.


DOWN

public static final SeSlot.SwpStatus DOWN
SWP link status: The SWP line is down.


ERROR

public static final SeSlot.SwpStatus ERROR
SWP link status: The link is in error. It cannot be used.


INITIALIZATION

public static final SeSlot.SwpStatus INITIALIZATION
SWP link status: The SWP link is initializing. It cannot be used yet.


ACTIVE

public static final SeSlot.SwpStatus ACTIVE
SWP link status: The SWP link is active. It may be used for communication.

Method Detail

values

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

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

valueOf

public static SeSlot.SwpStatus 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

getValue

public int getValue()
Returns the status value.


Copyright © 2010-2011 Inside Secure
Except as noted, this content is licensed under Apache 2.0 License.