Package com.mindee.parsing.generated
Class GeneratedObject
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- com.mindee.parsing.generated.GeneratedObject
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class GeneratedObject extends HashMap<String,Object>
An object within a feature.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description GeneratedObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AmountFieldasAmountField()Represent the object as a standardAmountField.BooleanFieldasBooleanField()Represent the object as a standardBooleanField.ClassificationFieldasClassificationField()Represent the object as a standardClassificationField.DateFieldasDateField()Represent the object as a standardDateField.StringFieldasStringField()Represent the object as a standardStringField.PolygongetAsPolygon(String key)Get the specified key as aPolygonobject.DoublegetConfidence()Get the confidence score, if present.BooleangetIsComputed()Get the information on whether the date field was extracted.IntegergetPageId()Get the page ID, if present.PolygongetPolygon()Get the polygon, if present.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
asStringField
public StringField asStringField()
Represent the object as a standardStringField.- Returns:
- A
StringFieldcontaining a string value.
-
asAmountField
public AmountField asAmountField()
Represent the object as a standardAmountField.- Returns:
- An
AmountFieldcontaining a double value.
-
asBooleanField
public BooleanField asBooleanField()
Represent the object as a standardBooleanField.- Returns:
- A
BooleanFieldcontaining a boolean value.
-
asDateField
public DateField asDateField()
Represent the object as a standardDateField.- Returns:
- A
DateFieldcontaining a date value.
-
asClassificationField
public ClassificationField asClassificationField()
Represent the object as a standardClassificationField.- Returns:
- A
ClassificationFieldcontaining a string value.
-
getAsPolygon
public Polygon getAsPolygon(String key)
Get the specified key as aPolygonobject.- Parameters:
key- Key to retrieve the polygon from.- Returns:
- A
Polygon.
-
getPageId
public Integer getPageId()
Get the page ID, if present.- Returns:
- A page ID, as an integer.
-
getConfidence
public Double getConfidence()
Get the confidence score, if present.- Returns:
- The confidence score, as a double.
-
getIsComputed
public Boolean getIsComputed()
Get the information on whether the date field was extracted.- Returns:
- A boolean representation of the field.
-
-