|
LuciadCPillar C# 2026.1.02
|
A representation of the type of a data object. More...
Classes | |
| class | Builder |
Builder that allows DataType instances to be created. More... | |
Public Member Functions | |
| void | Dispose () |
| override bool | Equals (object other) |
| Luciad.Datamodels.DataProperty | FindDataProperty (string name) |
| Searches for a data property by name. | |
| override int | GetHashCode () |
| Returns the hash code. | |
| Luciad.Datamodels.DataPropertyPath | GetPropertyPathFor (string propertyName) |
Returns the DataPropertyPath for the named property on this data type. | |
| bool | HasDataProperty (Luciad.Datamodels.DataProperty property) |
| Returns if the given property is declared in this data type. | |
| override string | ToString () |
Static Public Member Functions | |
| static Luciad.Datamodels.DataType.Builder | NewBuilder () |
Creates a new DataType builder. | |
Properties | |
| System.Collections.Generic.IList< Luciad.Datamodels.DataAnnotation > | Annotations [get] |
| The list of annotations attached to this data type. | |
| static Luciad.Datamodels.DataType | BooleanType [get] |
| The type that corresponds to bool values. | |
| System.Collections.Generic.IList< Luciad.Datamodels.DataProperty > | DataProperties [get] |
| The list of properties of this data type. | |
| static Luciad.Datamodels.DataType | DoubleType [get] |
| The type that corresponds to double values. | |
| static Luciad.Datamodels.DataType | FloatType [get] |
| The type that corresponds to float values. | |
| static Luciad.Datamodels.DataType | GeometryType [get] |
The type that corresponds to Geometry values. | |
| static Luciad.Datamodels.DataType | IntType [get] |
| The type that corresponds to int32_t values. | |
| bool | IsPrimitive [get] |
| Whether this is a primitive type, i.e. | |
| static Luciad.Datamodels.DataType | LongType [get] |
| The type that corresponds to int64_t values. | |
| string | Name [get] |
| The name of this data type. | |
| static Luciad.Datamodels.DataType | StringType [get] |
| The type that corresponds to std.string values. | |
A representation of the type of a data object.
A type describes the structure of a data object as a list of properties. Each of these properties is itself of a certain type.
A type is either a primitive type or a data object type. Primitive types are types which have no internal structure (no properties) and typically represent simple object such as strings, numbers etc. All primitive types are accessible from this class (see e.g. getIntType(), getStringType() ...).
Additional metadata can be attached to a type in the form of a DataAnnotation.
New types can be defined using a DataType.Builder (see newBuilder()).
Instances of this class are thread safe. Once an instance has been created, there is no public API to modify it.
DataProperty
|
inline |
|
inline |
| other | another data type. |
|
inline |
Searches for a data property by name.
| name | the name of a property |
HasDataProperty
|
inline |
Returns the hash code.
|
inline |
Returns the DataPropertyPath for the named property on this data type.
This resolves a property name into a reusable DataPropertyPath. Resolving a name once and reusing the path with the DataPropertyPath overloads of the value accessors prevents the per-call lookup when reading or writing the same property across many features or data objects.
| propertyName | the name of a property in this data type. |
DataPropertyPath for the given property name. | System.ArgumentException | when no property with that name exists in this data type. |
|
inline |
Returns if the given property is declared in this data type.
| property | Data property. |
FindDataProperty
|
inlinestatic |
|
inline |
|
get |
The list of annotations attached to this data type.
Returns the list of annotations attached to this data type.
|
staticget |
The type that corresponds to bool values.
Returns the type that corresponds to bool values.
|
get |
The list of properties of this data type.
Returns the list of properties of this data type.
|
staticget |
The type that corresponds to double values.
Returns the type that corresponds to double values.
|
staticget |
The type that corresponds to float values.
Returns the type that corresponds to float values.
|
staticget |
|
staticget |
The type that corresponds to int32_t values.
Returns the type that corresponds to int32_t values.
|
get |
Whether this is a primitive type, i.e.
Returns whether this is a primitive type, i.e. a type without any properties.
|
staticget |
The type that corresponds to int64_t values.
Returns the type that corresponds to int64_t values.
|
get |
The name of this data type.
Returns the name of this data type.
|
staticget |
The type that corresponds to std.string values.
Returns the type that corresponds to std.string values.