Interface DataType


  • public interface DataType
    Represents a data type for structured content provided by a Content Fragment.

    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").

    Since:
    1.1
    • Method Detail

      • getTypeString

        @NotNull
        @NotNull java.lang.String getTypeString()
        Gets the string representation of the data type.

        The string representation must be unique and is used to identify the type (and some releated data like mappings, etc.) within the repository.

        Returns:
        The string representation of the data type
      • isMultiValue

        boolean isMultiValue()
        Determines if the data type represents an array of values.
        Returns:
        true if the data type represents a collection of values; false if the data type represents a single value