Package org.jpos.iso
Enum PosDataCode.ReadingMethod
- java.lang.Object
-
- java.lang.Enum<PosDataCode.ReadingMethod>
-
- org.jpos.iso.PosDataCode.ReadingMethod
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PosDataCode.ReadingMethod>
,PosFlags.Flag
- Enclosing class:
- PosDataCode
public static enum PosDataCode.ReadingMethod extends java.lang.Enum<PosDataCode.ReadingMethod> implements PosFlags.Flag
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BARCODE
CONTACTLESS
DATA_ON_FILE
FALLBACK
ICC
ICC_FAILED
MAGNETIC_STRIPE
MAGNETIC_STRIPE_FAILED
PHYSICAL
TRACK1_PRESENT
TRACK2_PRESENT
UNKNOWN
-
Field Summary
Fields Modifier and Type Field Description static int
OFFSET
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOffset()
int
intValue()
java.lang.String
toString()
static PosDataCode.ReadingMethod
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PosDataCode.ReadingMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final PosDataCode.ReadingMethod UNKNOWN
-
CONTACTLESS
public static final PosDataCode.ReadingMethod CONTACTLESS
-
PHYSICAL
public static final PosDataCode.ReadingMethod PHYSICAL
-
BARCODE
public static final PosDataCode.ReadingMethod BARCODE
-
MAGNETIC_STRIPE
public static final PosDataCode.ReadingMethod MAGNETIC_STRIPE
-
ICC
public static final PosDataCode.ReadingMethod ICC
-
DATA_ON_FILE
public static final PosDataCode.ReadingMethod DATA_ON_FILE
-
ICC_FAILED
public static final PosDataCode.ReadingMethod ICC_FAILED
-
MAGNETIC_STRIPE_FAILED
public static final PosDataCode.ReadingMethod MAGNETIC_STRIPE_FAILED
-
FALLBACK
public static final PosDataCode.ReadingMethod FALLBACK
-
TRACK1_PRESENT
public static final PosDataCode.ReadingMethod TRACK1_PRESENT
-
TRACK2_PRESENT
public static final PosDataCode.ReadingMethod TRACK2_PRESENT
-
-
Field Detail
-
OFFSET
public static int OFFSET
-
-
Method Detail
-
values
public static PosDataCode.ReadingMethod[] 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 (PosDataCode.ReadingMethod c : PosDataCode.ReadingMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PosDataCode.ReadingMethod valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
intValue
public int intValue()
- Specified by:
intValue
in interfacePosFlags.Flag
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<PosDataCode.ReadingMethod>
-
getOffset
public int getOffset()
- Specified by:
getOffset
in interfacePosFlags.Flag
-
-