Enum OcrLanguageType
- java.lang.Object
-
- java.lang.Enum<OcrLanguageType>
-
- net.webpdf.wsclient.schema.operation.OcrLanguageType
-
- All Implemented Interfaces:
Serializable,Comparable<OcrLanguageType>
public enum OcrLanguageType extends Enum<OcrLanguageType>
<?xml version="1.0" encoding="UTF-8"?><p xmlns:p146669_="https://jakarta.ee/xml/ns/jaxb" xmlns:p388438_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Used to specify the language for the output document (PDF/image). The language must be defined for the character recognition operation (OCR) so that the "special characters" of the respective language (e.g. "üäö" in German) can be recognized better. At present, the following languages are supported: <ul><li>eng = English</li><li>fra = French</li><li>spa = Spanish</li><li>deu = German</li><li>ita = Italian</li></ul></p>Java class for OcrLanguageType
.The following schema fragment specifies the expected content contained within this class.
<simpleType name="OcrLanguageType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="eng"/> <enumeration value="deu"/> <enumeration value="fra"/> <enumeration value="ita"/> <enumeration value="spa"/> </restriction> </simpleType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OcrLanguageTypefromValue(String v)Gets the enum associated to the value passed as parameter.Stringvalue()Gets the value associated to the enum constant.static OcrLanguageTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OcrLanguageType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENG
public static final OcrLanguageType ENG
-
DEU
public static final OcrLanguageType DEU
-
FRA
public static final OcrLanguageType FRA
-
ITA
public static final OcrLanguageType ITA
-
SPA
public static final OcrLanguageType SPA
-
-
Method Detail
-
values
public static OcrLanguageType[] 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 (OcrLanguageType c : OcrLanguageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OcrLanguageType 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 nameNullPointerException- if the argument is null
-
value
public String value()
Gets the value associated to the enum constant.- Returns:
- The value linked to the enum.
-
fromValue
public static OcrLanguageType fromValue(String v)
Gets the enum associated to the value passed as parameter.- Parameters:
v- The value to get the enum from.- Returns:
- The enum which corresponds to the value, if it exists.
- Throws:
IllegalArgumentException- If no value matches in the enum declaration.
-
-