Interface IsParentOf
- All Superinterfaces:
Element,IdentifiableElement,RelationElement<Context,,Context> Serializable
- All Known Implementing Classes:
IsParentOfImpl
@TypeMetadata(name="IsParentOf",
description="This type is the used to define parental relations between Context",
version="1.0.0")
@Change(version="1.0.0",
description="First Version")
public interface IsParentOf
extends RelationElement<Context,Context>
Represents a parental relationship between two
Contexts.
This relation is used to build the hierarchical tree structure of contexts. For more details, refer to the gCube Facet Based Resource Model Wiki.
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTYFields inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement
SOURCE_PROPERTY, TARGET_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionReturns the source entity of the relation.Returns the target entity of the relation.voidSets the source entity of the relation.voidSets the target entity of the relation.Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement
getID, getMetadata, setID, setMetadata
-
Field Details
-
NAME
The name of the IsParentOf relation type.- See Also:
-
-
Method Details
-
getSource
Context getSource()Returns the source entity of the relation.- Specified by:
getSourcein interfaceRelationElement<Context,Context> - Returns:
- The source entity.
-
setSource
Sets the source entity of the relation.- Specified by:
setSourcein interfaceRelationElement<Context,Context> - Parameters:
source- The source entity to set.
-
getTarget
Context getTarget()Returns the target entity of the relation.- Specified by:
getTargetin interfaceRelationElement<Context,Context> - Returns:
- The target entity.
-
setTarget
Sets the target entity of the relation.- Specified by:
setTargetin interfaceRelationElement<Context,Context> - Parameters:
target- The target entity to set.
-