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 AmountField
asAmountField()
Represent the object as a standardAmountField
.ClassificationField
asClassificationField()
Represent the object as a standardClassificationField
.DateField
asDateField()
Represent the object as a standardDateField
.StringField
asStringField()
Represent the object as a standardStringField
.Polygon
getAsPolygon(String key)
Get the specified key as aPolygon
object.Double
getConfidence()
Get the confidence score, if present.Boolean
getIsComputed()
Get the information on whether the date field was extracted.Integer
getPageId()
Get the page ID, if present.Polygon
getPolygon()
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
.
-
asAmountField
public AmountField asAmountField()
Represent the object as a standardAmountField
.
-
asClassificationField
public ClassificationField asClassificationField()
Represent the object as a standardClassificationField
.
-
getPolygon
public Polygon getPolygon()
Get the polygon, if present.
-
getPageId
public Integer getPageId()
Get the page ID, if present.
-
getConfidence
public Double getConfidence()
Get the confidence score, if present.
-
getIsComputed
public Boolean getIsComputed()
Get the information on whether the date field was extracted.
-
-