Package org.graphdrawing.graphml
Class PortType
java.lang.Object
org.graphdrawing.graphml.PortType
public class PortType
extends java.lang.Object
Complex type for the element.
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}desc" 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>
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.Object>dataOrPortprotected java.lang.Stringdescprotected java.lang.Stringname -
Constructor Summary
Constructors Constructor Description PortType() -
Method Summary
Modifier and Type Method Description java.util.List<java.lang.Object>getDataOrPort()Gets the value of the dataOrPort property.java.lang.StringgetDesc()Gets the value of the desc property.java.lang.StringgetName()Gets the value of the name property.voidsetDesc(java.lang.String value)Sets the value of the desc property.voidsetName(java.lang.String value)Sets the value of the name property.
-
Field Details
-
desc
protected java.lang.String desc -
dataOrPort
protected java.util.List<java.lang.Object> dataOrPort -
name
protected java.lang.String name
-
-
Constructor Details
-
PortType
public PortType()
-
-
Method Details
-
getDesc
public java.lang.String getDesc()Gets the value of the desc property.- Returns:
- possible object is
String
-
setDesc
public void setDesc(java.lang.String value)Sets the value of the desc property.- Parameters:
value- allowed object isString
-
getDataOrPort
public java.util.List<java.lang.Object> getDataOrPort()Gets the value of the dataOrPort property.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
setmethod for the dataOrPort property.For example, to add a new item, do as follows:
getDataOrPort().add(newItem);
Objects of the following type(s) are allowed in the list
DataTypePortType -
getName
public java.lang.String getName()Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(java.lang.String value)Sets the value of the name property.- Parameters:
value- allowed object isString
-