content: package com.abbyy.ocrsdk;
  
  /*
   * Settings for processing text field via processTextField call
   */
  public class TextFieldSettings {
  	public String asUrlParams() {
  		// For all possible parameters, see documentation at
  		// https://ocrsdk.com/documentation/apireference/processTextField/
  		String params = String.format("language=%s&textType=%s", language,
  				textType);
  		if (options != null && !options.isEmpty()) {
  			params += "&" + options;
  		}
  
  		return params;
  	}
  
  	/*
  	 * Set recognition language. You can set any language listed at
  	 * https://ocrsdk.com/documentation/specifications/recognition-languages/ or
  	 * set comma-separated combination of them.
  	 * 
  	 * Examples: English English,ChinesePRC English,French,German
  	 */
  	public void setLanguage(String newLanguage) {
  		language = newLanguage;
  	}
  
  	public String getLanguage() {
  		return language;
  	}
  
  	public String getTextType() {
  		return textType;
  	}
  
  	public void setTextType(String newTextType) {
  		textType = newTextType;
  	}
  
  	/**
  	 * Set extra options directly passed to RESTful call.
  	 */
  	public void setOptions(String newOptions) {
  		options = newOptions;
  	}
  
  	public String getOptions() {
  		return options;
  	}
  
  	private String language = "English";
  	private String textType = "normal,handprinted";
  
  	/**
  	 * Extra options passed directly to RESTful call.
  	 */
  	private String options = null;
  }
  