Interface ERElement

All Superinterfaces:
Element, IdentifiableElement, ModelElement, Serializable
All Known Subinterfaces:
ConsistsOf<S,T>, Entity, Facet, IsRelatedTo<S,T>, Relation<S,T>, Resource
All Known Implementing Classes:
ConsistsOfImpl, DummyFacet, DummyIsRelatedTo, DummyResource, EntityImpl, FacetImpl, IsRelatedToImpl, RelationImpl, ResourceImpl

public interface ERElement extends IdentifiableElement, ModelElement
An interface for identifiable entity-relationship (ER) elements of the model.

This serves as a common type for core model elements like Resource, Facet, IsRelatedTo, and ConsistsOf. It extends IdentifiableElement and ModelElement, and adds a property to retrieve the contexts in which the element exists.

Author:
Luca Frosini (ISTI - CNR)
  • Field Details

    • CONTEXTS_PROPERTY

      static final String CONTEXTS_PROPERTY
      The property name for the map of contexts associated with the element.

      This property is not native to the model but is generated by the server for administrative client convenience.

      See Also:
  • Method Details

    • getContexts

      Map<UUID,String> getContexts()
      Returns a map of contexts where this element is present.

      The map keys are the context UUIDs, and the values are the context names. This property is included in JSON serialization only if it is not null.

      Returns:
      A Map of context UUIDs to context names, or null.