public class Node extends Object
Java class for NodeType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="NodeType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="data" type="{http://graphml.graphdrawing.org/xmlns}DataType" maxOccurs="unbounded" minOccurs="0"/>
<element name="graph" type="{http://graphml.graphdrawing.org/xmlns}GraphType" minOccurs="0"/>
</sequence>
<attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<Data> |
data |
protected Graph |
graph |
protected String |
id |
| Constructor and Description |
|---|
Node() |
| Modifier and Type | Method and Description |
|---|---|
List<Data> |
getData()
Gets the value of the data property.
|
Graph |
getGraph()
Gets the value of the graph property.
|
String |
getId()
Gets the value of the id property.
|
void |
setGraph(Graph value)
Sets the value of the graph property.
|
void |
setId(String value)
Sets the value of the id property.
|
public List<Data> getData()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the data property.
For example, to add a new item, do as follows:
getData().add(newItem);
Objects of the following type(s) are allowed in the list
Data
public Graph getGraph()
Graphpublic void setGraph(Graph value)
value - allowed object is
GraphCopyright © 2007–2019 Andreas W. Bartels. All rights reserved.