public interface FieldCreate
Modifier and Type | Method and Description |
---|---|
Structure |
appendField(Structure structure,
String fieldName,
Field field)
Append a field to a structure,
|
Structure |
appendFields(Structure structure,
String[] fieldNames,
Field[] fields)
Append fields to a structure,
|
FieldBuilder |
createFieldBuilder()
Create a new instance of in-line
Field builder. |
Scalar |
createScalar(ScalarType scalarType)
Create a ScalarField.
|
ScalarArray |
createScalarArray(ScalarType elementType)
Create an Array field.
|
Structure |
createStructure(String[] fieldNames,
Field[] fields)
Create a Structure field.
|
Structure |
createStructure(String id,
String[] fieldNames,
Field[] fields)
Create a Structure field with an identification.
|
Structure |
createStructure(Structure structToClone)
Create a Structure field.
|
StructureArray |
createStructureArray(Structure elementStructure)
Create an Array field that is has element type Structure
|
Union |
createUnion(String[] fieldNames,
Field[] fields)
Create an Union field.
|
Union |
createUnion(String id,
String[] fieldNames,
Field[] fields)
Create an Union field with an identification.
|
UnionArray |
createUnionArray(Union elementUnion)
Create an Array field that is has element type Union
|
Union |
createVariantUnion()
Create a variant Union (aka any type) field.
|
UnionArray |
createVariantUnionArray()
Create a variant UnionArray (aka any type) field.
|
Field |
deserialize(ByteBuffer buffer,
DeserializableControl control)
Deserialize Field instance from given byte buffer.
|
FieldBuilder createFieldBuilder()
Field
builder.FieldBuilder
.Scalar createScalar(ScalarType scalarType)
scalarType
- The scalar type.An
- IllegalArgumentException if an illegal type is specified.ScalarArray createScalarArray(ScalarType elementType)
elementType
- The scalarType for array elementsStructureArray createStructureArray(Structure elementStructure)
elementStructure
- The Structure for each array element.UnionArray createUnionArray(Union elementUnion)
elementUnion
- The Union for each array element.UnionArray createVariantUnionArray()
Structure createStructure(String[] fieldNames, Field[] fields)
fieldNames
- The array of field names for the structure.fields
- The array of fields for the structure.Structure createStructure(String id, String[] fieldNames, Field[] fields)
id
- The identification string for the structure.fieldNames
- The array of field names for the structure.fields
- The array of fields for the structure.Structure appendField(Structure structure, String fieldName, Field field)
structure
- The structure to which the field is appended.fieldName
- the name for the appended field.field
- The appended field.Structure appendFields(Structure structure, String[] fieldNames, Field[] fields)
structure
- The structure to which the fields are appended.fieldNames
- the names for the appended fields.fields
- The appended fields.Structure createStructure(Structure structToClone)
structToClone
- The structure to clone.Union createVariantUnion()
Union createUnion(String[] fieldNames, Field[] fields)
fieldNames
- The array of field names for the union.fields
- The array of fields for the union.Union createUnion(String id, String[] fieldNames, Field[] fields)
id
- The identification string for the union.fieldNames
- The array of field names for the union.fields
- The array of fields for the union.Field deserialize(ByteBuffer buffer, DeserializableControl control)
buffer
- Buffer containing serialized Field instance.control
- Deserialization control instance.Copyright © 2014. All Rights Reserved.