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
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.IdentifierFacet
IdentifierFacet.IdentificationType
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanpersistentWhether the identifier is persistentprotected IdentifierFacet.IdentificationTypetypeThe identification typeprotected StringvalueThe identifier value-
Fields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
additionalProperties, allowedAdditionalKeys
-
Fields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
contexts, expectedtype, supertypes
-
Fields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
metadata, uuid
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
NAME
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTY
-
Fields inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.IdentifierFacet
IDENTIFICATION_TYPE_PROPERTY, NAME, VALUE_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description IdentifierFacetImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifierFacet.IdentificationTypegetIdentificationType()The identification typeStringgetValue()The identifier valuebooleanisPersistent()To indicate whether the identifier is persistent or notvoidsetIdentificationType(IdentifierFacet.IdentificationType type)Sets the identification typevoidsetPersistent(boolean persistent)Sets whether the identifier is persistent or notvoidsetValue(String value)Sets the identifier value-
Methods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
Methods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
getContexts, getExpectedtype, getSupertypes, setContexts
-
Methods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
getID, getMetadata, setID, setMetadata
-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadata
-
-
-
-
Field Detail
-
value
protected String value
The identifier value
-
type
protected IdentifierFacet.IdentificationType type
The identification type
-
persistent
protected boolean persistent
Whether the identifier is persistent
-
-
Method Detail
-
getValue
public String getValue()
The identifier value- Specified by:
getValuein interfaceIdentifierFacet- Returns:
- the value
-
setValue
public void setValue(String value)
Sets the identifier value- Specified by:
setValuein interfaceIdentifierFacet- Parameters:
value- the value
-
getIdentificationType
public IdentifierFacet.IdentificationType getIdentificationType()
The identification type- Specified by:
getIdentificationTypein interfaceIdentifierFacet- Returns:
- the identification type
-
setIdentificationType
public void setIdentificationType(IdentifierFacet.IdentificationType type)
Sets the identification type- Specified by:
setIdentificationTypein interfaceIdentifierFacet- Parameters:
type- the identification type
-
isPersistent
public boolean isPersistent()
To 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)
Sets whether the identifier is persistent or not- Specified by:
setPersistentin interfaceIdentifierFacet- Parameters:
persistent- true if the identifier is persistent, false otherwise
-
-