Package com.mindee.parsing.v2.field
Class ListField
- java.lang.Object
-
- com.mindee.parsing.v2.field.BaseField
-
- com.mindee.parsing.v2.field.ListField
-
public final class ListField extends BaseField
Field holding a list of fields.
-
-
Constructor Summary
Constructors Constructor Description ListField()ListField(List<DynamicField> items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)List<DynamicField>getItems()Items of the list.List<ObjectField>getObjectItems()Retrieves theitemsasObjectFieldobjects.List<SimpleField>getSimpleItems()Retrieves theitemsasSimpleFieldobjects.inthashCode()StringtoString()-
Methods inherited from class com.mindee.parsing.v2.field.BaseField
getConfidence, getLocations, setConfidence, setLocations
-
-
-
-
Constructor Detail
-
ListField
public ListField(List<DynamicField> items)
-
ListField
public ListField()
-
-
Method Detail
-
getSimpleItems
public List<SimpleField> getSimpleItems() throws IllegalStateException
Retrieves theitemsasSimpleFieldobjects.- Returns:
- a list of
SimpleFieldobjects - Throws:
IllegalStateException- if any dynamic field in the list is not of typeSIMPLE_FIELD
-
getObjectItems
public List<ObjectField> getObjectItems() throws IllegalStateException
Retrieves theitemsasObjectFieldobjects.- Returns:
- a list of
ObjectFieldobjects - Throws:
IllegalStateException- if any dynamic field in the list is not of typeOBJECT_FIELD
-
getItems
public List<DynamicField> getItems()
Items of the list.
-
-