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

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