|
LuciadCPillar 2026.1.02
|
DataAnnotation that marks a string-typed DataProperty as holding JSON text. More...
#include <luciad/datamodels/JsonDataAnnotation.h>
Public Member Functions | |
| size_t | getHash () const override |
| Returns the hash code. | |
| bool | operator!= (const DataAnnotation &other) const override |
| bool | operator== (const DataAnnotation &other) const override |
| Public Member Functions inherited from luciad::DataAnnotation | |
| virtual | ~DataAnnotation ()=default |
Static Public Member Functions | |
| static bool | isPresent (const DataProperty &property) |
| Returns whether the given data property is annotated as holding JSON text. | |
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.
|
overridevirtual |
|
static |
Returns whether the given data property is annotated as holding JSON text.
| property | the data property to check. |
|
overridevirtual |
Implements luciad::DataAnnotation.
|
overridevirtual |
Implements luciad::DataAnnotation.