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> dataOrPort  
    protected java.lang.String desc  
    protected java.lang.String name  
  • 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.String getDesc()
    Gets the value of the desc property.
    java.lang.String getName()
    Gets the value of the name property.
    void setDesc​(java.lang.String value)
    Sets the value of the desc property.
    void setName​(java.lang.String value)
    Sets the value of the name property.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

  • 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 is String
    • 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 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 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 is String