Package com.google.zxing.client.result
Enum ParsedResultType
- java.lang.Object
-
- java.lang.Enum<ParsedResultType>
-
- com.google.zxing.client.result.ParsedResultType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ParsedResultType>
public enum ParsedResultType extends java.lang.Enum<ParsedResultType>
Represents the type of data encoded by a barcode -- from plain text, to a URI, to an e-mail address, etc.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ParsedResultType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParsedResultType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ParsedResultType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADDRESSBOOK
public static final ParsedResultType ADDRESSBOOK
-
EMAIL_ADDRESS
public static final ParsedResultType EMAIL_ADDRESS
-
PRODUCT
public static final ParsedResultType PRODUCT
-
URI
public static final ParsedResultType URI
-
TEXT
public static final ParsedResultType TEXT
-
GEO
public static final ParsedResultType GEO
-
TEL
public static final ParsedResultType TEL
-
SMS
public static final ParsedResultType SMS
-
CALENDAR
public static final ParsedResultType CALENDAR
-
WIFI
public static final ParsedResultType WIFI
-
ISBN
public static final ParsedResultType ISBN
-
VIN
public static final ParsedResultType VIN
-
-
Method Detail
-
values
public static ParsedResultType[] 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 (ParsedResultType c : ParsedResultType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParsedResultType 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
-
-