public class Port extends Object implements IKeyDataContainer
Java class for port.type complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="port.type"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element ref="{http://graphml.graphdrawing.org/xmlns}description" minOccurs="0"/> <choice maxOccurs="unbounded" minOccurs="0"> <element ref="{http://graphml.graphdrawing.org/xmlns}data"/> <element ref="{http://graphml.graphdrawing.org/xmlns}port"/> </choice> </sequence> <attGroup ref="{http://graphml.graphdrawing.org/xmlns}port.extra.attrib"/> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected List<KeyData> |
keyData |
protected String |
name |
protected List<Port> |
ports |
Constructor and Description |
---|
Port() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Gets the value of the description property.
|
List<KeyData> |
getKeyData()
Gets the value of the keyData property.
|
String |
getName()
Gets the value of the name property.
|
List<Port> |
getPorts()
Gets the value of the ports property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setName(String value)
Sets the value of the name property.
|
public String getDescription()
String
public void setDescription(String value)
value
- allowed object is
String
public List<KeyData> getKeyData()
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 keyData property.
For example, to add a new item, do as follows:
getKeyData().add(newItem);
Objects of the following type(s) are allowed in the list
KeyData
getKeyData
in interface IKeyDataContainer
public List<Port> getPorts()
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 ports property.
For example, to add a new item, do as follows:
getPorts().add(newItem);
Objects of the following type(s) are allowed in the list
Port
public String getName()
String