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

Represents a property of a DataType. More...

Inheritance diagram for Luciad.Datamodels.DataProperty:

Classes

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

Public Member Functions

void Dispose ()
override bool Equals (object other)
override int GetHashCode ()
 Returns the hash code.
override string ToString ()

Static Public Member Functions

static Luciad.Datamodels.DataProperty.Builder NewBuilder ()
 Creates a new DataProperty builder.

Properties

System.Collections.Generic.IList< Luciad.Datamodels.DataAnnotation > Annotations [get]
 The annotations attached to this data property.
Luciad.Datamodels.DataCollectionKind CollectionKind [get]
 The collection type of this data property.
string Name [get]
 The name of the data property.
Luciad.Datamodels.DataType ValueType [get]
 The type of the value of this data property.

Detailed Description

Represents a property of a DataType.

A property has a name, a value type and a collection type. The value type indicates whether the value is a simple primitive or another data object. The collection type indicates whether the property holds a single value or a list of values of the value type (see DataCollectionKind).

Additional metadata can be attached to a property in the form of a DataAnnotation (see getAnnotations()).

New properties can be defined using a DataProperty.Builder (see newBuilder()).

Instances of this class are thread-safe. Once an instance has been created, there is no public API to modify it.

Member Function Documentation

◆ Dispose()

void Luciad.Datamodels.DataProperty.Dispose ( )
inline

◆ Equals()

override bool Luciad.Datamodels.DataProperty.Equals ( object other)
inline
Parameters
otheranother property
Returns
whether this and other have the same name, value type, collection type and annotations.

◆ GetHashCode()

override int Luciad.Datamodels.DataProperty.GetHashCode ( )
inline

Returns the hash code.

Returns
the hash code.

◆ NewBuilder()

Luciad.Datamodels.DataProperty.Builder Luciad.Datamodels.DataProperty.NewBuilder ( )
inlinestatic

Creates a new DataProperty builder.

Returns
a new DataProperty builder.

◆ ToString()

override string Luciad.Datamodels.DataProperty.ToString ( )
inline

Property Documentation

◆ Annotations

System.Collections.Generic.IList<Luciad.Datamodels.DataAnnotation> Luciad.Datamodels.DataProperty.Annotations
get

The annotations attached to this data property.

[get]

Returns the annotations attached to this data property.

Since
2026.1 [get]

◆ CollectionKind

Luciad.Datamodels.DataCollectionKind Luciad.Datamodels.DataProperty.CollectionKind
get

The collection type of this data property.

[get]

Returns the collection type of this data property. Defaults to DataCollectionKind.Scalar. A property built with DataCollectionKind.List holds a list of values of getValueType() rather than a single value.

Since
2026.1 [get]

◆ Name

string Luciad.Datamodels.DataProperty.Name
get

The name of the data property.

[get]

Returns the name of the data property.

◆ ValueType

Luciad.Datamodels.DataType Luciad.Datamodels.DataProperty.ValueType
get

The type of the value of this data property.

[get]

Returns the type of the value of this data property. For a list-typed property (see getCollectionKind()), this is the type of the elements in the list.