public class NodeModel extends Object
It is based on JAXB.
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_NAME
The current model XML tag name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOrReplaceData(DataModel data)
Adds the given
DataModel to the list if its DataModel.getKey() is not already there or replaces
it else. |
static WithId<String,WithData<Build<NodeModel>>> |
builder()
A builder to the current
NodeModel class. |
List<DataModel> |
getData()
Returns the current <node> data tags.
|
GraphModel |
getGraph()
Returns the current <node> inner graph.
|
String |
getId()
Returns the current <node> ID.
|
void |
setDescription(String description)
Sets a <data> tag of type
C4Keys.DESCRIPTION and with the given value. |
void |
setEntityType(EntityType entityType)
Sets a <data> tag of type
C4Keys.ENTITY_TYPE and with the given value. |
void |
setGraph(GraphModel graph)
Sets a child <graph> into the current <node>.
|
void |
setId(String id)
Sets the current <node>
id attribute. |
void |
setName(String name)
Sets a <data> tag of type
C4Keys.NAME and with the given value. |
void |
setTechnologicalStack(String technologicalStack)
Sets a <data> tag of type
C4Keys.TECHNOLOGICAL_STACK and with the given value. |
public static final String TAG_NAME
public static WithId<String,WithData<Build<NodeModel>>> builder()
NodeModel class.NodeModel instance.public void addOrReplaceData(DataModel data)
DataModel to the list if its DataModel.getKey() is not already there or replaces
it else.data - the given DataModel to add/replace.public List<DataModel> getData()
public GraphModel getGraph()
public String getId()
public void setDescription(String description)
C4Keys.DESCRIPTION and with the given value.description - the data value to set.public void setEntityType(EntityType entityType)
C4Keys.ENTITY_TYPE and with the given value.entityType - the data value to set.public void setGraph(GraphModel graph)
graph - the graph to set.public void setId(String id)
id attribute.id - the id to set.public void setName(String name)
C4Keys.NAME and with the given value.name - the data value to set.public void setTechnologicalStack(String technologicalStack)
C4Keys.TECHNOLOGICAL_STACK and with the given value.technologicalStack - the data value to set.Copyright © 2020. All rights reserved.