Class PortType

java.lang.Object
org.graphdrawing.graphml.PortType

public class PortType extends 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 Details

  • Constructor Details

    • PortType

      public PortType()
  • Method Details

    • 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 is String
    • 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 set method 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 DataType PortType

    • getName

      public String getName()
      Gets the value of the name property.
      Returns:
      possible object is String
    • setName

      public void setName(String value)
      Sets the value of the name property.
      Parameters:
      value - allowed object is String