LuciadCPillar C# 2024.0.04
|
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. More... | |
override int | GetHashCode () |
Returns the hash code. More... | |
bool | HasDataProperty (Luciad.Datamodels.DataProperty property) |
Returns if the given property is declared in this data type. More... | |
override string | ToString () |
Static Public Member Functions | |
static Luciad.Datamodels.DataType.Builder | NewBuilder () |
Creates a new DataType builder. More... | |
Properties | |
System.Collections.Generic.IList< Luciad.Datamodels.DataAnnotation > | Annotations [get] |
The list of annotations attached to this data type. More... | |
static Luciad.Datamodels.DataType | BooleanType [get] |
The type that corresponds to bool values. More... | |
System.Collections.Generic.IList< Luciad.Datamodels.DataProperty > | DataProperties [get] |
The list of properties of this data type. More... | |
static Luciad.Datamodels.DataType | DoubleType [get] |
The type that corresponds to double values. More... | |
static Luciad.Datamodels.DataType | FloatType [get] |
The type that corresponds to float values. More... | |
static Luciad.Datamodels.DataType | GeometryType [get] |
The type that corresponds to Geometry values. More... | |
static Luciad.Datamodels.DataType | IntType [get] |
The type that corresponds to int32_t values. More... | |
bool | IsPrimitive [get] |
Whether this is a primitive type, i.e. More... | |
static Luciad.Datamodels.DataType | LongType [get] |
The type that corresponds to int64_t values. More... | |
string | Name [get] |
The name of this data type. More... | |
static Luciad.Datamodels.DataType | StringType [get] |
The type that corresponds to std::string values. More... | |
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()
...).
Application-specific 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 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.