Class FieldType
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class FieldType implements Parcelable
Generic Document Type.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
name
private final String
fullName
private final String
normalizedName
private final CommonFieldType
commonType
private final Integer
listIndex
-
Method Summary
Modifier and Type Method Description final String
getName()
Local field type name scoped to the containing document type. final String
getFullName()
Unique global field type name prefixed with the document types of all containing documents. final String
getNormalizedName()
Normalized global field type name. final CommonFieldType
getCommonType()
Commonly occurring fields that have the same semantic meaning in different document types will often have a set common type. final Integer
getListIndex()
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. final JSONObject
toJson(ToJsonConfiguration config)
final FieldType
clone()
-
-
Constructor Detail
-
FieldType
FieldType(JSONObject json)
-
FieldType
FieldType(String name, String fullName, String normalizedName, CommonFieldType commonType, Integer listIndex)
-
-
Method Detail
-
getFullName
final String getFullName()
Unique global field type name prefixed with the document types of all containing documents.
-
getNormalizedName
final String getNormalizedName()
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.
-
getCommonType
final CommonFieldType getCommonType()
Commonly occurring fields that have the same semantic meaning in different document types will often have a set common type.
-
getListIndex
final Integer getListIndex()
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.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
-
-
-