CollectionSchema Class Documentation
classCollectionSchemaNamespace:com::datalogics::PDFL
Detailed Description
Provides for adding/removing/retrieving schema fields in a collection.
Referenced by
Uses types
Member Function Documentation
DisposeChildren
voidDisposeChildren()Returns:
void[static initializer]
static void[static initializer]()addField
voidaddField(CollectionSchemaFieldfield)Parameters
field: CollectionSchemaFieldCollectionSchemaField object which will be added to the schema.
Returns:
voidAddField allows to set new field to the CollectionSchema object.If the target field exists, it is overwritten. The schema fields contain all information required to organize Collection in a certain way.
delete
synchronized voiddelete(Booleandisposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized voiddelete()Returns:
synchronized voidfinalize
voidfinalize()Returns:
voidgetField
CollectionSchemaFieldgetField(intidx)Parameters
idx: intindex of the object to find.
Returns:
CollectionSchemaField object if found or NULL otherwise.GetField allows to obtain CollectionSchemaField object by its index.
getField
CollectionSchemaFieldgetField(Stringname)Parameters
name: Stringtextual field name.
Returns:
CollectionSchemaField object if found or NULL otherwise.GetField allows to obtain CollectionSchemaField by name.
getFieldsNumber
intgetFieldsNumber()Returns:
the fields number.GetFieldsNumber allows to obtain fields number in the schema.
removeField
voidremoveField(CollectionSchemaFieldfield)Parameters
field: CollectionSchemaFieldCollectionSchemaField which will be removed from the schema.
Returns:
voidRemoveField allows to remove specified field from the schema. NOTE: to distinguish whether specified object belongs to the schema this uses CollectionSchemaField's name.