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 twoContexts.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
Fields Modifier and Type Field Description static StringNAMEThe name of the IsParentOf relation type.-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, 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
SOURCE_PROPERTY, TARGET_PROPERTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContextgetSource()Returns the source entity of the relation.ContextgetTarget()Returns the target entity of the relation.voidsetSource(Context source)Sets the source entity of the relation.voidsetTarget(Context target)Sets the target entity of the relation.-
Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
Methods inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement
getID, getMetadata, setID, setMetadata
-
-
-
-
Field Detail
-
NAME
static final String NAME
The name of the IsParentOf relation type.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSource
Context getSource()
Returns the source entity of the relation.- Specified by:
getSourcein interfaceRelationElement<Context,Context>- Returns:
- The source entity.
-
setSource
void setSource(Context source)
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
void setTarget(Context target)
Sets the target entity of the relation.- Specified by:
setTargetin interfaceRelationElement<Context,Context>- Parameters:
target- The target entity to set.
-
-