public class Edge extends Object
Java class for EdgeType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="EdgeType">
<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"/>
</sequence>
<attribute name="source" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="target" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<Data> |
data |
protected String |
source |
protected String |
target |
| Constructor and Description |
|---|
Edge() |
| Modifier and Type | Method and Description |
|---|---|
List<Data> |
getData()
Gets the value of the data property.
|
String |
getSource()
Gets the value of the source property.
|
String |
getTarget()
Gets the value of the target property.
|
void |
setSource(String value)
Sets the value of the source property.
|
void |
setTarget(String value)
Sets the value of the target 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 String getSource()
Stringpublic void setSource(String value)
value - allowed object is
Stringpublic String getTarget()
StringCopyright © 2007–2019 Andreas W. Bartels. All rights reserved.