Package org.graphdrawing.graphml
Class PortType
- java.lang.Object
-
- org.graphdrawing.graphml.PortType
-
public class PortType extends Object
Complex type for theelement. 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>
-
-
Constructor Summary
Constructors Constructor Description PortType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>getDataOrPort()Gets the value of the dataOrPort property.StringgetDesc()Gets the value of the desc property.StringgetName()Gets the value of the name property.voidsetDesc(String value)Sets the value of the desc property.voidsetName(String value)Sets the value of the name property.
-
-
-
Method Detail
-
getDesc
public String getDesc()
Gets the value of the desc property.- Returns:
- possible object is
String
-
setDesc
public void setDesc(String value)
Sets the value of the desc property.- Parameters:
value- allowed object isString
-
getDataOrPort
public List<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 String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
-