Package com.mindee.parsing.v2.field
Class ObjectField
- java.lang.Object
-
- com.mindee.parsing.v2.field.BaseField
-
- com.mindee.parsing.v2.field.ObjectField
-
public class ObjectField extends BaseField
Field holding a map of sub-fields.
-
-
Constructor Summary
Constructors Constructor Description ObjectField()ObjectField(InferenceFields fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)InferenceFieldsgetFields()Sub-fields keyed by their name.LinkedHashMap<String,SimpleField>getSimpleFields()Retrieves all sub-fields from thefieldsmap as aLinkedHashMapofSimpleFieldobjects, keyed by their field names.inthashCode()StringtoString()StringtoStringFromList()-
Methods inherited from class com.mindee.parsing.v2.field.BaseField
getConfidence, getLocations, setConfidence, setLocations
-
-
-
-
Constructor Detail
-
ObjectField
public ObjectField(InferenceFields fields)
-
ObjectField
public ObjectField()
-
-
Method Detail
-
getSimpleFields
public LinkedHashMap<String,SimpleField> getSimpleFields() throws IllegalStateException
Retrieves all sub-fields from thefieldsmap as aLinkedHashMapofSimpleFieldobjects, keyed by their field names.- Returns:
- a
LinkedHashMapcontaining the field names as keys and their correspondingSimpleFieldinstances as values - Throws:
IllegalStateException- if any field is not of typeSIMPLE_FIELD
-
toStringFromList
public String toStringFromList()
-
getFields
public InferenceFields getFields()
Sub-fields keyed by their name.
-
-