Class Definitions

java.lang.Object
org.jibx.ws.wsdl.model.WsdlBase
org.jibx.ws.wsdl.model.Definitions

public class Definitions extends WsdlBase
Top-level component of WSDL definition. TODO: modify to support multiple portTypes, bindings, and services
Author:
Dennis M. Sosnoski
  • Field Details

    • HTTP_TRANSPORT

      public static final String HTTP_TRANSPORT
      Transport specification for SOAP over HTTP.
      See Also:
    • STYLE_DOCUMENT

      public static final String STYLE_DOCUMENT
      Supported style value.
      See Also:
    • m_wsdlPrefix

      private String m_wsdlPrefix
      Prefix for WSDL target namespace.
    • m_wsdlNamespace

      private String m_wsdlNamespace
      Target namespace for WSDL.
    • m_portTypeName

      private String m_portTypeName
      Name for port type.
    • m_bindingName

      private String m_bindingName
      Name for binding.
    • m_serviceName

      private String m_serviceName
      Name for service.
    • m_portName

      private String m_portName
      Name for port.
    • m_schemas

      private ArrayList m_schemas
      Schema definition holders.
    • m_messages

      private ArrayList m_messages
      Message definitions.
    • m_operations

      private ArrayList m_operations
      Operation definitions.
    • m_portTypeDocumentation

      private List m_portTypeDocumentation
      Documentation for the portType.
    • m_serviceLocation

      private String m_serviceLocation
      Service location URL.
    • m_namespaceUris

      private Set m_namespaceUris
      Namespaces referenced from WSDL.
  • Constructor Details

    • Definitions

      private Definitions()
      Default constructor. This is only used by the unmarshalling code.
    • Definitions

      public Definitions(String tname, String bname, String sname, String pname, String wpfx, String wuri)
      Standard constructor.
      Parameters:
      tname - port type name
      bname - binding name
      sname - service name
      pname - port name
      wpfx - prefix for WSDL target namespace
      wuri - WSDL target namespace
  • Method Details

    • setServiceLocation

      public void setServiceLocation(String sloc)
      Set service location.
      Parameters:
      sloc - service location URL string
    • addMessage

      public void addMessage(Message msg)
      Add message definition.
      Parameters:
      msg - message definition
    • addOperation

      public void addOperation(Operation op)
      Add operation definition.
      Parameters:
      op - operation definition
    • getPortTypeName

      public String getPortTypeName()
      Get port type name.
      Returns:
      port type name
    • getPortTypeQName

      public QName getPortTypeQName()
      Get port type qualified name
      Returns:
      port type qualified name
    • getBindingName

      public String getBindingName()
      Get binding name.
      Returns:
      binding name
    • getBindingQName

      public QName getBindingQName()
      Get binding qualified name
      Returns:
      binding qualified name
    • getServiceName

      public String getServiceName()
      Get service name.
      Returns:
      service name
    • getPortName

      public String getPortName()
      Get port name.
      Returns:
      port name
    • getWsdlPrefix

      public String getWsdlPrefix()
      Get WSDL target namespace prefix.
      Returns:
      target namespace prefix
    • getWsdlNamespace

      public String getWsdlNamespace()
      Get WSDL target namespace URI.
      Returns:
      target namespace
    • getSchemas

      public ArrayList getSchemas()
      Get schema definition holders.
      Returns:
      schemas
    • getServiceLocation

      public String getServiceLocation()
      Get service location.
      Returns:
      service location URL string
    • getPortTypeDocumentation

      public List getPortTypeDocumentation()
      Get portType documentation.
      Returns:
      list of nodes
    • setPortTypeDocumentation

      public void setPortTypeDocumentation(List nodes)
      Set portType documentation.
      Parameters:
      nodes - list of nodes
    • getMessages

      public ArrayList getMessages()
      Get messages.
      Returns:
      list of messages
    • getOperations

      public ArrayList getOperations()
      Get operations.
      Returns:
      list of operations
    • addNamespace

      public void addNamespace(String uri)
      Add namespace to set declared in WSDL. This just uses numbered prefixes.
      Parameters:
      uri -