Interface IdentifiableElement
- All Superinterfaces:
Element,Serializable
- All Known Subinterfaces:
ConsistsOf<S,,T> ConsistsOfType,Context,Entity,EntityElement,EntityType,ERElement,Facet,FacetType,IsParentOf,IsRelatedTo<S,,T> IsRelatedToType,PropertyType,QueryTemplate,Relation<S,,T> RelationElement<S,,T> RelationType<S,,T> Resource,ResourceType,Type
- All Known Implementing Classes:
ConsistsOfImpl,ConsistsOfTypeImpl,ContextImpl,DummyFacet,DummyIsRelatedTo,DummyResource,EntityElementImpl,EntityImpl,EntityTypeImpl,FacetImpl,FacetTypeImpl,IsParentOfImpl,IsRelatedToImpl,IsRelatedToTypeImpl,PropertyTypeImpl,QueryTemplateImpl,RelationElementImpl,RelationImpl,RelationTypeImpl,ResourceImpl,ResourceTypeImpl,TypeImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the property used to store the unique identifier (UUID) of the element.static final StringThe name of the property used to store the metadata associated with the element.Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptiongetID()Returns the unique identifier (UUID) of the element.Returns the metadata associated with the element.voidSets the unique identifier (UUID) for the element.voidsetMetadata(Metadata metadata) Sets the metadata for the element.Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
Field Details
-
ID_PROPERTY
The name of the property used to store the unique identifier (UUID) of the element.- See Also:
-
METADATA_PROPERTY
The name of the property used to store the metadata associated with the element.- See Also:
-
-
Method Details
-
getID
UUID getID()Returns the unique identifier (UUID) of the element.- Returns:
- The
UUIDof the element.
-
setID
Sets the unique identifier (UUID) for the element.- Parameters:
uuid- TheUUIDto set.
-
getMetadata
Metadata getMetadata()Returns the metadata associated with the element.The metadata is included in JSON serialization only if it is not null.
- Returns:
- The
Metadataof the element, ornullif none is set.
-
setMetadata
Sets the metadata for the element.- Parameters:
metadata- TheMetadatato associate with the element.
-