public enum DataSource extends Enum<DataSource>
Enum Constant and Description |
---|
Barcode
Barcode
|
None
No data source.
|
Track1
Track 1.
|
Track2
Track 2.
|
Track3
Track 3.
|
Modifier and Type | Method and Description |
---|---|
static DataSource |
fromString(String text)
Returns the DataSource enumeration for the specified text or null if no enumeration matches the specified text.
|
String |
getText()
Returns the string representation of the DataSource enumeration member.
|
int |
getValue()
Returns the integer representation of the DataSource enumeration member.
|
static DataSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataSource None
public static final DataSource Track1
public static final DataSource Track2
public static final DataSource Track3
public static final DataSource Barcode
public static DataSource[] values()
for (DataSource c : DataSource.values()) System.out.println(c);
public static DataSource valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public String getText()
public static DataSource fromString(String text)
text
- text representation of the specified enumeration member.
© 2016 ZIH Corp. All Rights Reserved.