Class FieldType

java.lang.Object
io.scanbot.sdk.genericdocument.FieldType

public class FieldType extends Object
Generic Document Type.
  • 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

      public FieldType(String name, String fullName, String normalizedName, CommonFieldType commonType)
      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

      public String getName()
      Getter for name field. See constructor documentation for more information about the field.
      Returns:
      name
    • getFullName

      public String getFullName()
      Getter for fullName field. See constructor documentation for more information about the field.
      Returns:
      fullName
    • getNormalizedName

      public String getNormalizedName()
      Getter for normalizedName field. See constructor documentation for more information about the field.
      Returns:
      normalizedName
    • getCommonType

      public CommonFieldType getCommonType()
      Getter for commonType field. See constructor documentation for more information about the field.
      Returns:
      commonType
    • getListIndex

      public Integer getListIndex()
      Getter for listIndex field. See constructor documentation for more information about the field.
      Returns:
      listIndex