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 boolean
canEqual(Object other)
boolean
equals(Object o)
InferenceFields
getFields()
Sub-fields keyed by their name.LinkedHashMap<String,SimpleField>
getSimpleFields()
Retrieves all sub-fields from thefields
map as aLinkedHashMap
ofSimpleField
objects, keyed by their field names.int
hashCode()
String
toString()
String
toStringFromList()
-
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 thefields
map as aLinkedHashMap
ofSimpleField
objects, keyed by their field names.- Returns:
- a
LinkedHashMap
containing the field names as keys and their correspondingSimpleField
instances 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.
-
-