public final class ContextImpl extends EntityElementImpl implements Context
| Modifier and Type | Field and Description |
|---|---|
protected List<IsParentOf> |
children |
protected String |
name |
protected IsParentOf |
parent |
headerCHILDREN_PROPERTY, NAME, NAME_PROPERTY, PARENT_PROPERTYHEADER_PROPERTYCLASS_PROPERTY, DATETIME_PATTERN, SUPERCLASSES_PROPERTY| Modifier | Constructor and Description |
|---|---|
protected |
ContextImpl() |
|
ContextImpl(String name) |
|
ContextImpl(String name,
UUID uuid) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Context child) |
void |
addChild(IsParentOf isParentOf) |
void |
addChild(UUID uuid) |
protected void |
addChildFromJson(IsParentOf isParentOf) |
List<IsParentOf> |
getChildren() |
String |
getName() |
IsParentOf |
getParent() |
protected void |
setChildrenFromJson(List<IsParentOf> children) |
void |
setName(String name) |
void |
setParent(Context context) |
void |
setParent(IsParentOf isParentOf) |
void |
setParent(UUID uuid) |
protected void |
setParentFromJson(IsParentOf isParentOf) |
getHeader, setHeader, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHeadersetHeaderprotected String name
protected IsParentOf parent
protected List<IsParentOf> children
protected ContextImpl()
public ContextImpl(String name)
public IsParentOf getParent()
protected void setParentFromJson(IsParentOf isParentOf) throws org.gcube.com.fasterxml.jackson.core.JsonProcessingException
org.gcube.com.fasterxml.jackson.core.JsonProcessingExceptionpublic void setParent(IsParentOf isParentOf)
public List<IsParentOf> getChildren()
getChildren in interface Contextprotected void setChildrenFromJson(List<IsParentOf> children) throws org.gcube.com.fasterxml.jackson.core.JsonProcessingException
org.gcube.com.fasterxml.jackson.core.JsonProcessingExceptionprotected void addChildFromJson(IsParentOf isParentOf) throws org.gcube.com.fasterxml.jackson.core.JsonProcessingException
org.gcube.com.fasterxml.jackson.core.JsonProcessingExceptionpublic void addChild(IsParentOf isParentOf)
Copyright © 2020. All Rights Reserved.