Interface Relation<S extends Resource,​T extends Entity>

    • Method Detail

      • setSource

        void setSource​(S source)
        Sets the source entity of the relation.
        Specified by:
        setSource in interface RelationElement<S extends Resource,​T extends Entity>
        Parameters:
        source - The source entity to set.
      • setTarget

        void setTarget​(T target)
        Sets the target entity of the relation.
        Specified by:
        setTarget in interface RelationElement<S extends Resource,​T extends Entity>
        Parameters:
        target - The target entity to set.
      • setPropagationConstraint

        void setPropagationConstraint​(PropagationConstraint propagationConstraint)
        Sets the propagation constraint for this relation.
        Parameters:
        propagationConstraint - The PropagationConstraint to set.
      • getAdditionalProperties

        Map<String,​Object> getAdditionalProperties()
        Returns a map of all additional properties not defined in the schema.
        Specified by:
        getAdditionalProperties in interface SchemaMixedElement
        Returns:
        A Map containing the additional properties, where the key is the property name and the value is the property value.
      • setAdditionalProperties

        void setAdditionalProperties​(Map<String,​Object> additionalProperties)
        Sets the map of additional properties for the element.
        Specified by:
        setAdditionalProperties in interface SchemaMixedElement
        Parameters:
        additionalProperties - A Map of additional properties.
      • getAdditionalProperty

        Object getAdditionalProperty​(String key)
        Retrieves a single additional property by its key.
        Specified by:
        getAdditionalProperty in interface SchemaMixedElement
        Parameters:
        key - The name of the additional property to retrieve.
        Returns:
        The value of the property, or null if the key is not found.
      • setAdditionalProperty

        void setAdditionalProperty​(String key,
                                   Object value)
        Sets a single additional property.
        Specified by:
        setAdditionalProperty in interface SchemaMixedElement
        Parameters:
        key - The name of the additional property.
        value - The value of the additional property.