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
public interface IdentifiableElement extends Element
-
-
Field Summary
Fields Modifier and Type Field Description static StringID_PROPERTYThe name of the property used to store the unique identifier (UUID) of the element.static StringMETADATA_PROPERTYThe 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UUIDgetID()Returns the unique identifier (UUID) of the element.MetadatagetMetadata()Returns the metadata associated with the element.voidsetID(UUID uuid)Sets 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 Detail
-
ID_PROPERTY
static final String ID_PROPERTY
The name of the property used to store the unique identifier (UUID) of the element.- See Also:
- Constant Field Values
-
METADATA_PROPERTY
static final String METADATA_PROPERTY
The name of the property used to store the metadata associated with the element.- See Also:
- Constant Field Values
-
-
Method Detail
-
getID
UUID getID()
Returns the unique identifier (UUID) of the element.- Returns:
- The
UUIDof the element.
-
setID
void setID(UUID uuid)
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.
-
-