Interface IdentifierFacet
- All Superinterfaces:
org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.model.reference.entities.Entity,org.gcube.informationsystem.base.reference.entities.EntityElement,org.gcube.informationsystem.model.reference.ERElement,org.gcube.informationsystem.model.reference.entities.Facet,org.gcube.informationsystem.base.reference.IdentifiableElement,org.gcube.informationsystem.model.reference.ModelElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,Serializable
- All Known Implementing Classes:
IdentifierFacetImpl
@TypeMetadata(name="IdentifierFacet",
description="IdentifierFacet captures information on identifiers (other than the ones automatically generated by the system) that can be attached to a resource.",
version="1.0.0")
@Change(version="1.0.0",
description="First Version")
public interface IdentifierFacet
extends org.gcube.informationsystem.model.reference.entities.Facet
IdentifierFacet captures information on identifiers (other than the
ones automatically generated by the system) that can be attached to a resource.
https://wiki.gcube-system.org/gcube/GCube_Model#Identifier_Facet
Changelog (only model changes are logged here. Not implementation details)
- 1.0.1 Added STRING in IdentificationType enum.
- 1.0.0 First version
- Author:
- Luca Frosini (ISTI - CNR)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEnumeration of possible identification types -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of 'identificationType' propertystatic final StringThe name associated with this facetstatic final StringThe name of 'value' propertyFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_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 TypeMethodDescriptionstatic IdentifierFacetReturns a default instance of IdentifierFacetThe identification typegetValue()The identifier valuebooleanTo indicate whether the identifier is persistent or notvoidSets the identification typevoidsetPersistent(boolean persistent) Sets whether the identifier is persistent or notvoidSets the identifier valueMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadataMethods inherited from interface org.gcube.informationsystem.model.reference.ERElement
getContextsMethods inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Field Details
-
NAME
The name associated with this facet- See Also:
-
VALUE_PROPERTY
The name of 'value' property- See Also:
-
IDENTIFICATION_TYPE_PROPERTY
The name of 'identificationType' property- See Also:
-
-
Method Details
-
getDefaultInstance
Returns a default instance of IdentifierFacet- Returns:
- a default instance of IdentifierFacet
-
getValue
@ISProperty(name="value", description="The identifier", mandatory=true, nullable=false) String getValue()The identifier value- Returns:
- the value
-
setValue
Sets the identifier value- Parameters:
value- the value
-
getIdentificationType
@ISProperty(name="identificationType", description="The typology of identifier", mandatory=true, nullable=false) IdentifierFacet.IdentificationType getIdentificationType()The identification type- Returns:
- the identification type
-
setIdentificationType
Sets the identification type- Parameters:
type- the identification type
-
isPersistent
@ISProperty(description="To indicate whether the identifier is persistent or not") boolean isPersistent()To indicate whether the identifier is persistent or not- Returns:
- true if the identifier is persistent, false otherwise
-
setPersistent
void setPersistent(boolean persistent) Sets whether the identifier is persistent or not- Parameters:
persistent- true if the identifier is persistent, false otherwise
-