Package net.gini.android.models
Class SpecificExtraction
- java.lang.Object
-
- net.gini.android.models.Extraction
-
- net.gini.android.models.SpecificExtraction
-
- All Implemented Interfaces:
android.os.Parcelable
public class SpecificExtraction extends Extraction
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<SpecificExtraction>
CREATOR
-
Constructor Summary
Constructors Constructor Description SpecificExtraction(java.lang.String name, java.lang.String value, java.lang.String entity, Box box, java.util.List<Extraction> candidates)
Value object for a specific extraction from the Gini API.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
java.util.List<Extraction>
getCandidate()
java.lang.String
getName()
void
writeToParcel(android.os.Parcel dest, int flags)
-
Methods inherited from class net.gini.android.models.Extraction
getBox, getEntity, getValue, isDirty, setBox, setIsDirty, setValue
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<SpecificExtraction> CREATOR
-
-
Constructor Detail
-
SpecificExtraction
public SpecificExtraction(java.lang.String name, java.lang.String value, java.lang.String entity, @Nullable Box box, java.util.List<Extraction> candidates)
Value object for a specific extraction from the Gini API.- Parameters:
name
- The specific extraction's name, e.g. "amountToPay".value
- The extraction's value. Changing this value marks the extraction as dirty.entity
- The extraction's entity.box
- Optional the box where the extraction is found. Only available on some extractions.candidates
- A list containing other candidates for this specific extraction. Candidates are of the same entity as the found extraction.
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getCandidate
public java.util.List<Extraction> getCandidate()
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
- Overrides:
describeContents
in classExtraction
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
- Overrides:
writeToParcel
in classExtraction
-
-