Package io.scanbot.sdk.genericdocument
Class FieldType
java.lang.Object
io.scanbot.sdk.genericdocument.FieldType
Generic Document Type.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldType(String name, String fullName, String normalizedName, CommonFieldType commonType) Constructs FieldType with default parameters.FieldType(String name, String fullName, String normalizedName, CommonFieldType commonType, Integer listIndex) Constructs FieldType with the given params. -
Method Summary
Modifier and TypeMethodDescriptionGetter for commonType field.Getter for fullName field.Getter for listIndex field.getName()Getter for name field.Getter for normalizedName field.
-
Constructor Details
-
FieldType
public FieldType(String name, String fullName, String normalizedName, CommonFieldType commonType, Integer listIndex) Constructs FieldType with the given params.- Parameters:
name- Local field type name scoped to the containing document type.fullName- Unique global field type name prefixed with the document types of all containing documents.normalizedName- Normalized global field type name. Fields in document types derived from the same base document type in the schema will have the same normalized name.commonType- Commonly occurring fields that have the same semantic meaning in different document types will often have a set common type.listIndex- A document can contain multiple fields of the same name, the property serves for storing natural order of such fields, null if multiple entries aren't allowed for this field.
-
FieldType
Constructs FieldType with default parameters.- Parameters:
name- Local field type name scoped to the containing document type.fullName- Unique global field type name prefixed with the document types of all containing documents.normalizedName- Normalized global field type name. Fields in document types derived from the same base document type in the schema will have the same normalized name.commonType- Commonly occurring fields that have the same semantic meaning in different document types will often have a set common type.
-
-
Method Details
-
getName
Getter for name field. See constructor documentation for more information about the field.- Returns:
- name
-
getFullName
Getter for fullName field. See constructor documentation for more information about the field.- Returns:
- fullName
-
getNormalizedName
Getter for normalizedName field. See constructor documentation for more information about the field.- Returns:
- normalizedName
-
getCommonType
Getter for commonType field. See constructor documentation for more information about the field.- Returns:
- commonType
-
getListIndex
Getter for listIndex field. See constructor documentation for more information about the field.- Returns:
- listIndex
-