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 Headerheaderprotected Ssourceprotected Ttarget-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
CLASS_PROPERTY, DATETIME_PATTERN, NAME, SUPERCLASSES_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
HEADER_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 HeadergetHeader()SgetSource()TgetTarget()voidsetHeader(Header header)voidsetSource(S source)voidsetTarget(T target)-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
toString
-
-
-
-
Field Detail
-
header
protected Header header
-
source
protected S extends EntityElement source
-
target
protected T extends EntityElement target
-
-
Method Detail
-
getHeader
public Header getHeader()
- Specified by:
getHeaderin interfaceIdentifiableElement- Specified by:
getHeaderin interfaceRelationElement<S extends EntityElement,T extends EntityElement>
-
setHeader
public void setHeader(Header header)
- Specified by:
setHeaderin interfaceIdentifiableElement
-
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>
-
-