Class WSDLNode

All Implemented Interfaces:
Peer
Direct Known Subclasses:
WSDLBindingOperation, WSDLDocument, WSDLExten, WSDLMessage, WSDLOperation, WSDLPart

public class WSDLNode extends Element
The WSDLNode interface is the primary datatype for the entire Web Services Description Language Model.
  • Field Details

    • WSDL_UNKNOWN

      public static final int WSDL_UNKNOWN
      Enumeration of supported node type definitions.
                      WSDL_DOCUMENT                    : this node is a WSDLDocument
                      WSDL_DEFINITIONS                 : this node is a WSDLNode of type WSDL_DEFINITIONS
                      WSDL_TYPES                               : this node is a WSDLNode of type WSDL_TYPES
                      WSDL_MESSAGE                     : this node is a WSDLMessage
                      WSDL_PART                                : this node is a WSDLPart
                      WSDL_OPERATION                   : this node is a WSDLOperation
                      WSDL_PORTTYPE                    : this node is a WSDLNode of type WSDL_PORTYPE
                      WSDL_BINDING                     : this node is a WSDLNode of type WSDL_BINDING
                      WSDL_BINDING_OPERATION   : this node is a WSDLBindingOperation
                      WSDL_SERVICE                     : this node is a WSDLNode of type WSDL_SERVICE
                      WSDL_INPUT                               : this node is a WSDLNode of type WSDL_INPUT
                      WSDL_OUTPUT                      : this node is a WSDLNode of type WSDL_OUTPUT
                      WSDL_FAULT                               : this node is a WSDLNode of type WSDL_FAULT
                      WSDL_PORT                                : this node is a WSDLNode of type WSDL_PORT
                      WSDL_EXTEN                               : this node is a WSDLExten
       
      See Also:
    • WSDL_DOCUMENT

      public static final int WSDL_DOCUMENT
      See Also:
    • WSDL_DEFINITIONS

      public static final int WSDL_DEFINITIONS
      See Also:
    • WSDL_TYPES

      public static final int WSDL_TYPES
      See Also:
    • WSDL_MESSAGE

      public static final int WSDL_MESSAGE
      See Also:
    • WSDL_PART

      public static final int WSDL_PART
      See Also:
    • WSDL_OPERATION

      public static final int WSDL_OPERATION
      See Also:
    • WSDL_PORTTYPE

      public static final int WSDL_PORTTYPE
      See Also:
    • WSDL_BINDING

      public static final int WSDL_BINDING
      See Also:
    • WSDL_BINDING_OPERATION

      public static final int WSDL_BINDING_OPERATION
      See Also:
    • WSDL_SERVICE

      public static final int WSDL_SERVICE
      See Also:
    • WSDL_INPUT

      public static final int WSDL_INPUT
      See Also:
    • WSDL_OUTPUT

      public static final int WSDL_OUTPUT
      See Also:
    • WSDL_FAULT

      public static final int WSDL_FAULT
      See Also:
    • WSDL_PORT

      public static final int WSDL_PORT
      See Also:
    • WSDL_EXTEN

      public static final int WSDL_EXTEN
      See Also:
    • WSDLA_BINDING

      public static final int WSDLA_BINDING
      Enumeration of supported attributes.
                      WSDLA_NAME                : the "name" attribute
                      WSDLA_ELEMENT     : the "element" attribute in the WSDL_PART node
                      WSDLA_TYPE                : the "type" attribute in the WSDL_PART and WSDL_BINDING nodes
                      WSDLA_MESSAGE     : the "message" attribute in the WSDL_INPUT and WSDL_OUTPUT nodes
                      WSDLA_BINDING     : the "binding" attribute in the WSDL_PORT node
       
      See Also:
    • WSDLA_ELEMENT

      public static final int WSDLA_ELEMENT
      See Also:
    • WSDLA_MESSAGE

      public static final int WSDLA_MESSAGE
      See Also:
    • WSDLA_NAME

      public static final int WSDLA_NAME
      See Also:
    • WSDLA_NAMESPACE

      public static final int WSDLA_NAMESPACE
      See Also:
    • WSDLA_PARAMETERORDER

      public static final int WSDLA_PARAMETERORDER
      See Also:
    • WSDLA_TYPE

      public static final int WSDLA_TYPE
      See Also:
    • WSDLA_MAX

      public static final int WSDLA_MAX
      See Also:
  • Constructor Details

    • WSDLNode

      public WSDLNode(WSDLDocument poDocument, Element oSrc, int eType)
      Constructor.
      Parameters:
      poDocument - Owning WSDL document for the new node.
      oSrc - Source DOM element.
      eType - WSDL node type.
  • Method Details

    • getNodeType

      public int getNodeType()
      The code representing the type of object represented by this WSDLNode
      Returns:
      A code representing the type of object represented by this WSDLNode
    • getWSDLOwnerDocument

      public WSDLDocument getWSDLOwnerDocument()
      Gets the Document object associated with this node. This is also the Document object used to create new nodes. When this node is a Document this is NULL.
    • getWSDLParentNode

      public WSDLNode getWSDLParentNode()
    • getWSDLChildNode

      public WSDLNode getWSDLChildNode(int inType, String inName)
    • getWSDLChildNode

      public WSDLNode getWSDLChildNode(int inType, String inName, String inTargetNS)
    • getWSDLChildNodesOfType

      public List<WSDLNode> getWSDLChildNodesOfType(int inType)
    • getNamespaceURI

      public String getNamespaceURI()
      The namespace URI of this node
      Returns:
      The namespace URI of this node or String::EmptyString() if it is unspecified
    • setNamespaceURI

      public void setNamespaceURI(String sNSURI)
    • getTargetNamespace

      public String getTargetNamespace()
      The target namespace of this node
      Returns:
      The target namespace of this node or String::EmptyString() if it is unspecified. This is equal to the targetnameSpace on the owner document, unless this node origniated from an import elememt with a different namespace
    • setTargetNamespace

      public void setTargetNamespace(String sTargetNS)
    • getNSURI

      public String getNSURI(String sPrefix)
    • getNSPrefix

      public String getNSPrefix(String sURI)
    • getWSDLName

      public String getWSDLName()
      The qualified name (W3C::QName) of this node depending on its type (specified by getNodeType()).
      Returns:
      The QName of this node depending on its type.
                 WSDL_TYPES                           : the literal string "#types"
                 WSDL_MESSAGE,                        : the name of the message
                 WSDL_PART,                           : the name of the part
                 WSDL_OPERATION,                      : the name of the operation
                 WSDL_PORTTYPE,                       : the name of the portType
                 WSDL_BINDING,                        : the name of the binding
                 WSDL_SERVICE,                        : the name of the service
                 WSDL_INPUT,                          : the name of the input
                 WSDL_OUTPUT,                         : the name of the output
                 WSDL_FAULT,                          : the name of the fault
                 WSDL_PORT                            : the name of the port
               
      See Also: W3C::QName
    • setWSDLName

      public void setWSDLName(String sNodeName)
    • getWSDLPrefix

      public String getWSDLPrefix()
    • setWSDLPrefix

      public void setWSDLPrefix(String sPrefix)
    • getDomNode

      public Element getDomNode()
    • getWSDLAttribute

      public String getWSDLAttribute(int eNodeAttribute)
      Gets a String containing the named attribute of this node (if it is has the named attribute or Sting::EmptyString() otherwise.