Class RelationElementImpl<S extends EntityElement,T extends EntityElement>
- java.lang.Object
-
- org.gcube.informationsystem.base.impl.ElementImpl
-
- org.gcube.informationsystem.base.impl.relations.RelationElementImpl<S,T>
-
- All Implemented Interfaces:
Serializable,Element,IdentifiableElement,RelationElement<S,T>
- Direct Known Subclasses:
IsParentOfImpl,RelationImpl
public abstract class RelationElementImpl<S extends EntityElement,T extends EntityElement> extends ElementImpl implements RelationElement<S,T>
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Metadatametadataprotected Ssourceprotected Ttargetprotected UUIDuuid-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement
NAME, SOURCE_PROPERTY, TARGET_PROPERTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRelationElementImpl()protectedRelationElementImpl(S source, T target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUIDgetID()MetadatagetMetadata()SgetSource()TgetTarget()voidsetID(UUID uuid)voidsetMetadata(Metadata metadata)voidsetSource(S source)voidsetTarget(T target)-
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.Element
getTypeName
-
-
-
-
Field Detail
-
uuid
protected UUID uuid
-
metadata
protected Metadata metadata
-
source
protected S extends EntityElement source
-
target
protected T extends EntityElement target
-
-
Method Detail
-
getID
public UUID getID()
- Specified by:
getIDin interfaceIdentifiableElement- Specified by:
getIDin interfaceRelationElement<S extends EntityElement,T extends EntityElement>
-
setID
public void setID(UUID uuid)
- Specified by:
setIDin interfaceIdentifiableElement- Specified by:
setIDin interfaceRelationElement<S extends EntityElement,T extends EntityElement>
-
getMetadata
public Metadata getMetadata()
- Specified by:
getMetadatain interfaceIdentifiableElement- Specified by:
getMetadatain interfaceRelationElement<S extends EntityElement,T extends EntityElement>
-
setMetadata
public void setMetadata(Metadata metadata)
- Specified by:
setMetadatain interfaceIdentifiableElement- Specified by:
setMetadatain interfaceRelationElement<S extends EntityElement,T extends EntityElement>
-
getSource
public S getSource()
- Specified by:
getSourcein interfaceRelationElement<S extends EntityElement,T extends EntityElement>
-
setSource
public void setSource(S source)
- Specified by:
setSourcein interfaceRelationElement<S extends EntityElement,T extends EntityElement>
-
getTarget
public T getTarget()
- Specified by:
getTargetin interfaceRelationElement<S extends EntityElement,T extends EntityElement>
-
setTarget
public void setTarget(T target)
- Specified by:
setTargetin interfaceRelationElement<S extends EntityElement,T extends EntityElement>
-
-