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
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe property name for the map of contexts associated with the element.Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionReturns a map of contexts where this element is present.Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
getID, getMetadata, setID, setMetadataMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Field Details
-
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
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
Mapof context UUIDs to context names, ornull.
-