public enum ProductCodeType extends Enum<ProductCodeType>
Modifier and Type | Method and Description |
---|---|
static ProductCodeType |
fromText(String text)
Attempt to retrieve a ProductCodeType by text value
|
int |
getSort()
Retrieve the sort index
|
String |
getType()
Retrieve the product type string
|
String |
toString() |
static ProductCodeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProductCodeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProductCodeType GTIN14
public static final ProductCodeType EAN
public static final ProductCodeType ISBN
public static final ProductCodeType ISBN13
public static final ProductCodeType UPC
public static ProductCodeType[] values()
for (ProductCodeType c : ProductCodeType.values()) System.out.println(c);
public static ProductCodeType 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 static ProductCodeType fromText(String text) throws IllegalArgumentException
text
- valueIllegalArgumentException
- if text is not foundpublic int getSort()
public String getType()
public String toString()
toString
in class Enum<ProductCodeType>
Copyright © 2017. All rights reserved.