Interface ModelElement

    • Field Detail

      • SUPERTYPES_PROPERTY

        static final String SUPERTYPES_PROPERTY
        The property name for the list of supertypes of the element.
        See Also:
        Constant Field Values
      • EXPECTED_TYPE_PROPERTY

        static final String EXPECTED_TYPE_PROPERTY
        The property name used by the deserializer to indicate the originally expected type when a more generic supertype had to be used for deserialization.
        See Also:
        Constant Field Values
    • Method Detail

      • getSupertypes

        List<String> getSupertypes()
        Returns the list of supertypes for this element.

        This list is included in JSON serialization only if it is not empty.

        Returns:
        A List of supertype names.
      • getExpectedtype

        String getExpectedtype()
        Returns the name of the expected type.

        This is used during deserialization to indicate the original type when a fallback to a supertype was necessary. It is included in JSON serialization only if it is not empty.

        Returns:
        The expected type name.