GiniCaptureSpecificExtraction

public class GiniCaptureSpecificExtraction extends GiniCaptureExtraction

Contains a Gini API specific extraction.

A specific extraction assings a semantic property to an extraction and it may contain a list of extraction candidates.

The extraction candidates are other suggestions for this specific extraction (e.g. all amounts on the document). Candidates are of the same entity as the found extraction.

Constructors

GiniCaptureSpecificExtraction
Link copied to clipboard
void GiniCaptureSpecificExtraction(@NonNull() String name, @NonNull() String value, @NonNull() String entity, @Nullable() GiniCaptureBox box, @NonNull() List<GiniCaptureExtraction> candidates)
Value object for a specific extraction from the Gini API.

Functions

describeContents
Link copied to clipboard
abstract int describeContents()
int describeContents()
getBox
Link copied to clipboard
synchronized GiniCaptureBox getBox()
bounding box containing the position of the extraction value on the document
getCandidates
Link copied to clipboard
List<GiniCaptureExtractiongetCandidates()
a list containing other candidates for this specific extraction
getEntity
Link copied to clipboard
synchronized String getEntity()
key (primary identification) of an entity type (e.g.
getName
Link copied to clipboard
String getName()
the specific extraction's name.
getValue
Link copied to clipboard
synchronized String getValue()
normalized textual representation of the text/information provided by the extraction value (e.g.
isDirty
Link copied to clipboard
synchronized boolean isDirty()
{@code true} if the value or the bounding box has been changed
setBox
Link copied to clipboard
synchronized void setBox(@Nullable() GiniCaptureBox newBox)
Set a new bounding box.
setIsDirty
Link copied to clipboard
synchronized void setIsDirty(boolean isDirty)
pass {@code true} to mark the extraction as dirty
setValue
Link copied to clipboard
synchronized void setValue(@NonNull() String newValue)
Set a new value for this extraction.
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<GiniCaptureSpecificExtractionCREATOR