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, andConsistsOf. It extendsIdentifiableElementandModelElement, and adds a property to retrieve the contexts in which the element exists.- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTEXTS_PROPERTYThe 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_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<UUID,String>getContexts()Returns a map of contexts where this element is present.-
Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
Methods inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
getID, getMetadata, setID, setMetadata
-
Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
-
-
-
Field Detail
-
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:
- Constant Field Values
-
-
Method Detail
-
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
Mapof context UUIDs to context names, ornull.
-
-