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

DataAnnotation that marks a string-typed DataProperty as holding JSON text. More...

Inheritance diagram for Luciad.Datamodels.JsonDataAnnotation:
Luciad.Datamodels.DataAnnotation

Public Member Functions

 JsonDataAnnotation ()
override bool Equals (object other)
override int GetHashCode ()
 Returns the hash code.
Public Member Functions inherited from Luciad.Datamodels.DataAnnotation
void Dispose ()
override bool Equals (object other)
override int GetHashCode ()
 Returns the hash value for this annotation.

Static Public Member Functions

static bool IsPresent (Luciad.Datamodels.DataProperty property)
 Returns whether the given data property is annotated as holding JSON text.

Detailed Description

DataAnnotation that marks a string-typed DataProperty as holding JSON text.

It lets a consumer distinguish a plain string property from properties with JSON string values, for example a property that a decoder could not map to a typed property and preserved as raw JSON text.

This is a flag-style annotation: all instances compare equal. Attach it to a DataProperty with the value type DataType.getStringType() through DataProperty.Builder.AddAnnotation.

Since
2026.1

Constructor & Destructor Documentation

◆ JsonDataAnnotation()

Luciad.Datamodels.JsonDataAnnotation.JsonDataAnnotation ( )
inline

Member Function Documentation

◆ Equals()

override bool Luciad.Datamodels.JsonDataAnnotation.Equals ( object other)
inline

◆ GetHashCode()

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

Returns the hash code.

Returns
the hash code.

◆ IsPresent()

bool Luciad.Datamodels.JsonDataAnnotation.IsPresent ( Luciad.Datamodels.DataProperty property)
inlinestatic

Returns whether the given data property is annotated as holding JSON text.

Parameters
propertythe data property to check.
Returns
whether the property carries a JsonDataAnnotation.