org.jvnet.wom.impl
Class WSDLOperationImpl

java.lang.Object
  extended by org.jvnet.wom.api.WSDLEntity
      extended by org.jvnet.wom.api.WSDLOperation
          extended by org.jvnet.wom.impl.WSDLOperationImpl
All Implemented Interfaces:
WSDLExtensible

public class WSDLOperationImpl
extends WSDLOperation

Author:
Vivek Pandey

Constructor Summary
WSDLOperationImpl(org.xml.sax.Locator locator, javax.xml.namespace.QName name, WSDLDocumentImpl document)
           
 
Method Summary
 void addFault(WSDLFaultImpl fault)
           
 java.lang.String getDocumentation()
          Gives the Comment on a WSDL component.
 WSDLFault getFault(javax.xml.namespace.QName faultDetailName)
          Gives WSDLFault for the given soap fault detail value.
 java.lang.Iterable<WSDLFaultImpl> getFaults()
          Gets the WSDLFault corresponding to wsdl:fault of this operation.
 WSDLInput getInput()
          Gets the wsdl:input of this operation
 WSDLOutput getOutput()
          Gets the wsdl:output of this operation.
 java.util.List<java.lang.String> getParameterOrder()
          Gives parameterOrder attribute defined on wsdl:operation.
 WSDLPortType getPortType()
          Gives enclosing wsdl:portType
 boolean isOneWay()
          Returns true if this operation is an one-way operation.
 void setDocumentation(java.lang.String doc)
           
 void setInput(WSDLInputImpl input)
           
 void setOutput(WSDLOutputImpl output)
           
 void setParameterOrder(java.lang.String[] paramOrder)
           
 void setParent(WSDLPortType parent)
           
<V,P> V
visit(WSDLVisitor<V,P> visitor, P param)
          WSDL visitor
 
Methods inherited from class org.jvnet.wom.api.WSDLEntity
addExtension, getExtension, getExtensions, getFirstExtension, getLocation, getName, getOwnerWSDLModel, getWSDLDocument, setOwnerWSDLDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLOperationImpl

public WSDLOperationImpl(org.xml.sax.Locator locator,
                         javax.xml.namespace.QName name,
                         WSDLDocumentImpl document)
Method Detail

getInput

public WSDLInput getInput()
Description copied from class: WSDLOperation
Gets the wsdl:input of this operation

Specified by:
getInput in class WSDLOperation
Returns:
non-null WSDLInput

getOutput

public WSDLOutput getOutput()
Description copied from class: WSDLOperation
Gets the wsdl:output of this operation.

Specified by:
getOutput in class WSDLOperation
Returns:
null if this is an one-way operation.

isOneWay

public boolean isOneWay()
Description copied from class: WSDLOperation
Returns true if this operation is an one-way operation.

Specified by:
isOneWay in class WSDLOperation

getFaults

public final java.lang.Iterable<WSDLFaultImpl> getFaults()
Description copied from class: WSDLOperation
Gets the WSDLFault corresponding to wsdl:fault of this operation.

Specified by:
getFaults in class WSDLOperation

getFault

public WSDLFault getFault(javax.xml.namespace.QName faultDetailName)
Description copied from class: WSDLOperation
Gives WSDLFault for the given soap fault detail value.

 

Given a wsdl fault:

<wsdl:message nae="faultMessage"> <wsdl:part name="fault" element="ns:myException/> </wsdl:message>

<wsdl:portType> <wsdl:operation ...> <wsdl:fault name="aFault" message="faultMessage"/> </wsdl:operation> <wsdl:portType>

For example given a soap 11 soap message:

<soapenv:Fault> ... <soapenv:detail> <ns:myException> ... </ns:myException> </soapenv:detail>

QName faultQName = new QName(ns, "myException"); WSDLFault wsdlFault = getFault(faultQName);

The above call will return a WSDLFault that abstracts wsdl:portType/wsdl:operation/wsdl:fault.

Specified by:
getFault in class WSDLOperation
Parameters:
faultDetailName - tag name of the element inside soaenv:Fault/detail/, must be non-null.
Returns:
returns null if a wsdl fault corresponding to the detail entry name not found.

addFault

public void addFault(WSDLFaultImpl fault)

getPortType

public WSDLPortType getPortType()
Description copied from class: WSDLOperation
Gives enclosing wsdl:portType

Specified by:
getPortType in class WSDLOperation
Returns:
always non-null

getParameterOrder

public java.util.List<java.lang.String> getParameterOrder()
Description copied from class: WSDLOperation
Gives parameterOrder attribute defined on wsdl:operation. The returned List is read only.

Specified by:
getParameterOrder in class WSDLOperation

setParameterOrder

public void setParameterOrder(java.lang.String[] paramOrder)

setInput

public void setInput(WSDLInputImpl input)

setOutput

public void setOutput(WSDLOutputImpl output)

setParent

public void setParent(WSDLPortType parent)

setDocumentation

public void setDocumentation(java.lang.String doc)

getDocumentation

public java.lang.String getDocumentation()
Description copied from class: WSDLEntity
Gives the Comment on a WSDL component. This is the content of <wsdl:document>

Overrides:
getDocumentation in class WSDLEntity
Returns:
"" if there is no documentation

visit

public <V,P> V visit(WSDLVisitor<V,P> visitor,
                     P param)
Description copied from class: WSDLEntity
WSDL visitor

Specified by:
visit in class WSDLEntity


Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved.