public abstract class StructuredDataType extends DataType
Modifier and Type | Field and Description |
---|---|
static int |
classId |
Constructor and Description |
---|
StructuredDataType(int id,
String name) |
StructuredDataType(String name) |
Modifier and Type | Method and Description |
---|---|
FieldPath |
buildFieldPath(String remainFieldName)
Creates a field path from the given field path string.
|
protected FieldValue |
createByReflection(Object arg)
Creates a field value by reflection
|
abstract StructuredFieldValue |
createFieldValue()
Creates a new, empty FieldValue of this type
|
protected static int |
createId(String name) |
boolean |
equals(Object o) |
DataTypeName |
getDataTypeName()
Returns the name of this as a DataTypeName
|
abstract Field |
getField(int id)
Gets the field with the specified id.
|
abstract Field |
getField(String name)
Gets the field matching a given name.
|
abstract Collection<Field> |
getFields() |
int |
hashCode() |
protected void |
register(DocumentTypeManager manager,
List<DataType> seenTypes) |
clone, compareTo, createFieldValue, getArray, getCode, getId, getMap, getName, getPrimitiveType, getTensor, getValueClass, getWeightedSet, getWeightedSet, isAssignableFrom, isMultivalue, isRegistered, isValueCompatible, lastPredefinedDataTypeId, register, setId, setName, setRegistered, skipDotInString, toString, visitMembers
public StructuredDataType(String name)
public StructuredDataType(int id, String name)
protected static int createId(String name)
public abstract StructuredFieldValue createFieldValue()
DataType
createFieldValue
in class DataType
protected FieldValue createByReflection(Object arg)
DataType
createByReflection
in class DataType
arg
- the value of the newly created field valuepublic DataTypeName getDataTypeName()
public abstract Field getField(String name)
name
- The name of a field.public abstract Field getField(int id)
id
- the id of the field to return.public abstract Collection<Field> getFields()
protected void register(DocumentTypeManager manager, List<DataType> seenTypes)
public FieldPath buildFieldPath(String remainFieldName)
DataType
buildFieldPath
in class DataType
remainFieldName
- a string containing the field pathCopyright © 2018. All rights reserved.