Interface Context
-
- All Superinterfaces:
Element,EntityElement,IdentifiableElement,Serializable
- All Known Implementing Classes:
ContextImpl
@TypeMetadata(name="Context", description="This type is the used to define a Context", version="1.0.0") @Change(version="1.0.0", description="First Version") public interface Context extends EntityElement
https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Context- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHILDREN_PROPERTYstatic StringNAMEstatic StringNAME_PROPERTYstatic StringPARENT_PROPERTY-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChild(UUID uuid)voidaddChild(Context child)voidaddChild(IsParentOf isParentOf)List<IsParentOf>getChildren()StringgetName()IsParentOfgetParent()voidsetName(String name)voidsetParent(UUID uuid)voidsetParent(Context context)voidsetParent(IsParentOf isParentOf)-
Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
Methods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadata
-
-
-
-
Field Detail
-
NAME
static final String NAME
- See Also:
- Constant Field Values
-
NAME_PROPERTY
static final String NAME_PROPERTY
- See Also:
- Constant Field Values
-
PARENT_PROPERTY
static final String PARENT_PROPERTY
- See Also:
- Constant Field Values
-
CHILDREN_PROPERTY
static final String CHILDREN_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
@ISProperty(name="name", mandatory=true, nullable=false) String getName()
-
setName
void setName(String name)
-
getParent
IsParentOf getParent()
-
setParent
void setParent(UUID uuid)
-
setParent
void setParent(Context context)
-
setParent
void setParent(IsParentOf isParentOf)
-
getChildren
List<IsParentOf> getChildren()
-
addChild
void addChild(UUID uuid)
-
addChild
void addChild(Context child)
-
addChild
void addChild(IsParentOf isParentOf)
-
-