Package com.luciad.datamodels
Class JsonDataAnnotation
java.lang.Object
com.luciad.datamodels.DataAnnotation
com.luciad.datamodels.JsonDataAnnotation
- All Implemented Interfaces:
AutoCloseable
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
JsonDataAnnotation
public JsonDataAnnotation()
-
-
Method Details
-
finalize
protected void finalize()- Overrides:
finalizein classDataAnnotation
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classDataAnnotation
-
isPresent
Returns whether the given data property is annotated as holding JSON text.- Parameters:
property- the data property to check.- Returns:
- whether the property carries a
JsonDataAnnotation.
-
hashCode
public int hashCode()Returns the hash code.- Overrides:
hashCodein classDataAnnotation- Returns:
- the hash code.
-
equals
- Overrides:
equalsin classDataAnnotation
-