@ProviderType
public interface DataType
Data types are used to extend text-based Content Fragments with structured, typed data. Fragments with structured data are called Structured Content Fragments.
The defining type strings (@see getTypeString()} for available types
are defined by BasicDataType.
Additionally, arrays of each data type are supported ("multi-value").
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.lang.String |
getSemanticType()
Gets the semantic type of the data type.
|
@NotNull java.lang.String |
getTypeString()
Deprecated.
Use
getValueType() and getSemanticType() |
@NotNull java.lang.String |
getValueType()
Gets the value type of the data type.
|
boolean |
isMultiValue()
Determines if the data type represents an array of values.
|
@Deprecated @NotNull @NotNull java.lang.String getTypeString()
getValueType() and getSemanticType()The string representation must be unique and is used to identify the type (and some related data like mappings, etc.) within the repository.
Note that it is recommended to use getValueType() and
getSemanticType(), which provide more precise and normalized access to the
type information.
@NotNull @NotNull java.lang.String getValueType()
The value type defines how a value is persisted. The list of value types is
provided through BasicDataType, except for the values deprecated there.
@Nullable @Nullable java.lang.String getSemanticType()
The semantic type defines how the stored value should be interpreted and mapped
to a Java object. For example, a semantic type content-fragment defines that
a value of value type string provides the path to a (nested) Content
Fragment.
Content Fragments ship with a set of predefined semantic types, defined by the
constants found in SemanticDataType.
boolean isMultiValue()
true if the data type represents a collection of values;
false if the data type represents a single valueCopyright © 2010 - 2022 Adobe. All Rights Reserved