CollectionSchema Class Documentation
classCollectionSchema : SystemIDisposableNamespace:Datalogics::PDFL
- Inherits from:
SystemIDisposable
Detailed Description
Provides for adding/removing/retrieving schema fields in a collection.
Referenced by
Uses types
Constructor & Destructor Documentation
CollectionSchema
CollectionSchema(CollectionSchemarhs, InternalConstructsignifier)Parameters
rhs: CollectionSchemasignifier: InternalConstruct
~CollectionSchema
~CollectionSchema()Property Documentation
FieldsNumber
intFieldsNumber[get]Member Function Documentation
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.
ConstructorRetrieve
static CollectionSchemaConstructorRetrieve(System.IntPtrignored)Parameters
ignored: System.IntPtr
Returns:
CollectionSchemaDispose
voidDispose()Returns:
voidDisposeChildren
voidDisposeChildren()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.
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.