Class IdentifierFacetImpl
java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
org.gcube.informationsystem.base.impl.entities.EntityElementImpl
org.gcube.informationsystem.model.impl.entities.EntityImpl
org.gcube.informationsystem.model.impl.entities.FacetImpl
org.gcube.resourcemanagement.model.impl.entities.facets.IdentifierFacetImpl
- All Implemented Interfaces:
Serializable,org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.base.reference.entities.EntityElement,org.gcube.informationsystem.base.reference.IdentifiableElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,org.gcube.informationsystem.model.reference.entities.Entity,org.gcube.informationsystem.model.reference.entities.Facet,org.gcube.informationsystem.model.reference.ERElement,org.gcube.informationsystem.model.reference.ModelElement,IdentifierFacet
public class IdentifierFacetImpl
extends org.gcube.informationsystem.model.impl.entities.FacetImpl
implements IdentifierFacet
Implementation of IdentifierFacet.
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanTo indicate whether the identifier is persistent or not.protected StringThe identification scheme.protected StringThe identifier value.Fields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
additionalProperties, allowedAdditionalKeysFields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
contexts, expectedType, supertypesFields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
metadata, uuidFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, REDACTED, TYPE_PROPERTY, UNKNOWN_USERFields inherited from interface org.gcube.informationsystem.model.reference.entities.Entity
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
NAMEFields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTYFields inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.IdentifierFacet
NAME, SCHEME_PROPERTY, VALUE_PROPERTY, VERSIONFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe identification scheme (e.g., "DOI", "ORCID", "SWHID", "UUID", "URI")getValue()The identifier valuebooleanTo indicate whether the identifier is persistent or notvoidsetPersistent(boolean persistent) Sets whether the identifier is persistent or notvoidSets the identification schemevoidSets the identifier valueMethods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
getContexts, getExpectedType, getSupertypes, setContextsMethods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
getID, getMetadata, setID, setMetadataMethods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
value
The identifier value. -
scheme
The identification scheme. -
persistent
protected boolean persistentTo indicate whether the identifier is persistent or not.
-
-
Constructor Details
-
IdentifierFacetImpl
public IdentifierFacetImpl()
-
-
Method Details
-
getValue
Description copied from interface:IdentifierFacetThe identifier value- Specified by:
getValuein interfaceIdentifierFacet- Returns:
- the value
-
setValue
Description copied from interface:IdentifierFacetSets the identifier value- Specified by:
setValuein interfaceIdentifierFacet- Parameters:
value- the value
-
getScheme
Description copied from interface:IdentifierFacetThe identification scheme (e.g., "DOI", "ORCID", "SWHID", "UUID", "URI")- Specified by:
getSchemein interfaceIdentifierFacet- Returns:
- the identification scheme
-
setScheme
Description copied from interface:IdentifierFacetSets the identification scheme- Specified by:
setSchemein interfaceIdentifierFacet- Parameters:
scheme- the identification scheme
-
isPersistent
public boolean isPersistent()Description copied from interface:IdentifierFacetTo indicate whether the identifier is persistent or not- Specified by:
isPersistentin interfaceIdentifierFacet- Returns:
- true if the identifier is persistent, false otherwise
-
setPersistent
public void setPersistent(boolean persistent) Description copied from interface:IdentifierFacetSets whether the identifier is persistent or not- Specified by:
setPersistentin interfaceIdentifierFacet- Parameters:
persistent- true if the identifier is persistent, false otherwise
-