GiniVisionExtraction

Contains a Gini API extraction.

An extraction contains an entity describing the general semantic type of the extraction (e.g. a date), which also determines the format of the value containing the information as text. Optionally there may be a box describing the position of the extraction value on the document. In most instances, extractions without a bounding box are meta information (e.g. doctype).

public class GiniVisionExtraction implements Parcelable

Constructors

GiniVisionExtraction
Link copied to clipboard

Value object for an extraction from the Gini API.

void GiniVisionExtraction(String value, String entity, GiniVisionBox box)

Functions

describeContents
Link copied to clipboard
abstract int describeContents()
int describeContents()
getBox
Link copied to clipboard

bounding box containing the position of the extraction value on the document

synchronized GiniVisionBox getBox()
getEntity
Link copied to clipboard

key (primary identification) of an entity type (e.g. banknumber). See Extraction Entities for a full list

synchronized String getEntity()
getValue
Link copied to clipboard

normalized textual representation of the text/information provided by the extraction value (e.g. bank number without spaces between the digits)

synchronized String getValue()
isDirty
Link copied to clipboard

{@code true} if the value or the bounding box has been changed

synchronized boolean isDirty()
setBox
Link copied to clipboard

Set a new bounding box. Marks the extraction as dirty.

synchronized void setBox(GiniVisionBox newBox)
setIsDirty
Link copied to clipboard

pass {@code true} to mark the extraction as dirty

synchronized void setIsDirty(boolean isDirty)
setValue
Link copied to clipboard

Set a new value for this extraction. Marks the extraction as dirty.

synchronized void setValue(String newValue)
toString
Link copied to clipboard
String toString()
writeToParcel
Link copied to clipboard
abstract void writeToParcel(Parcel p, int p1)
void writeToParcel(Parcel dest, int flags)

Properties

CREATOR
Link copied to clipboard
public final static Parcelable.Creator<GiniVisionExtractionCREATOR

Inheritors

GiniVisionSpecificExtraction
Link copied to clipboard