LuciadCPillar C# 2026.1.02
Loading...
Searching...
No Matches
Luciad.Datamodels.DataProperty.Builder Class Referencesealed

Builder that allows DataProperty instances to be created. More...

Inheritance diagram for Luciad.Datamodels.DataProperty.Builder:

Public Member Functions

 Builder (Luciad.Datamodels.DataProperty.Builder other)
 Copy constructor.
Luciad.Datamodels.DataProperty.Builder AddAnnotation (Luciad.Datamodels.DataAnnotation annotation)
 Adds an annotation to the data property under construction.
Luciad.Datamodels.DataProperty Build ()
 Build the data type, including the value type that was set on this builder.
Luciad.Datamodels.DataProperty.Builder CollectionKind (Luciad.Datamodels.DataCollectionKind type)
 Sets the collection type of the data property under construction.
void Dispose ()
Luciad.Datamodels.DataProperty.Builder Name (string name)
 Sets the name of the data property.
Luciad.Datamodels.DataProperty.Builder ValueType (Luciad.Datamodels.DataType type)
 Sets the data type for the data property under construction.

Detailed Description

Builder that allows DataProperty instances to be created.

Typical usage would be to create a DataProperty.Builder using DataProperty.NewBuilder, specifying the name of the data property. Then, specify the value type and finally build() the data property. The following snippet shows how this is done for a simple example data property:

return DataProperty.NewBuilder().Name("geometry").ValueType(DataType.GeometryType).Build();

Constructor & Destructor Documentation

◆ Builder()

Luciad.Datamodels.DataProperty.Builder.Builder ( Luciad.Datamodels.DataProperty.Builder other)
inline

Copy constructor.

Parameters
otherthe builder to copy.

Member Function Documentation

◆ AddAnnotation()

Luciad.Datamodels.DataProperty.Builder Luciad.Datamodels.DataProperty.Builder.AddAnnotation ( Luciad.Datamodels.DataAnnotation annotation)
inline

Adds an annotation to the data property under construction.

Parameters
annotationthe annotation to add.
Returns
this builder.
Exceptions
System.ArgumentNullExceptionwhen a null value is passed.
Since
2026.1

◆ Build()

Luciad.Datamodels.DataProperty Luciad.Datamodels.DataProperty.Builder.Build ( )
inline

Build the data type, including the value type that was set on this builder.

After calling this function, you should no longer use this builder.

Returns
the data type.
Exceptions
System.InvalidOperationExceptionIf not all mandatory parameters are set.

◆ CollectionKind()

Luciad.Datamodels.DataProperty.Builder Luciad.Datamodels.DataProperty.Builder.CollectionKind ( Luciad.Datamodels.DataCollectionKind type)
inline

Sets the collection type of the data property under construction.

Calling this function is optional. The default is DataCollectionKind.Scalar.

Parameters
typethe collection type for the data property under construction.
Returns
this builder.
Since
2026.1

◆ Dispose()

void Luciad.Datamodels.DataProperty.Builder.Dispose ( )
inline

◆ Name()

Luciad.Datamodels.DataProperty.Builder Luciad.Datamodels.DataProperty.Builder.Name ( string name)
inline

Sets the name of the data property.

Calling this function is mandatory.

Parameters
namename of the data property.
Returns
this builder.

◆ ValueType()

Luciad.Datamodels.DataProperty.Builder Luciad.Datamodels.DataProperty.Builder.ValueType ( Luciad.Datamodels.DataType type)
inline

Sets the data type for the data property under construction.

For a list-typed property (see collectionKind(DataCollectionKind)), this is the type of the elements in the list.

Calling this function is mandatory.

Parameters
typethe data type for the data property under construction.
Returns
this builder.