Class PropertyElementImpl

    • Field Detail

      • supertypes

        protected List<String> supertypes
        The list of supertypes for this property.
      • expectedtype

        protected String expectedtype
        The expected type of the property's value.
      • additionalProperties

        protected Map<String,​Object> additionalProperties
        A map to store additional, non-standard properties.
      • allowedAdditionalKeys

        protected final Set<String> allowedAdditionalKeys
        A set of keys that are allowed as additional properties, even if they start with '_' or '@'.
    • Constructor Detail

      • PropertyElementImpl

        public PropertyElementImpl()
        Default constructor. Initializes the additional properties map and the set of allowed keys.
    • Method Detail

      • getSupertypes

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

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

        Specified by:
        getSupertypes in interface ModelElement
        Returns:
        A List of supertype names.
      • getExpectedtype

        public 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.

        Specified by:
        getExpectedtype in interface ModelElement
        Returns:
        The expected type name.
      • addAllowedAdditionalKey

        public void addAllowedAdditionalKey​(String allowedAdditionalKey)
        Adds a key to the set of allowed additional keys.
        Parameters:
        allowedAdditionalKey - The key to allow.