com.sun.tools.ws.wsdl.document
Class Operation

java.lang.Object
  extended by com.sun.tools.ws.wsdl.framework.Entity
      extended by com.sun.tools.ws.wsdl.document.Operation
All Implemented Interfaces:
TWSDLExtensible, TWSDLOperation, Elemental

public class Operation
extends Entity
implements TWSDLOperation

Entity corresponding to the "operation" child element of a "portType" WSDL element.


Field Summary
 
Fields inherited from class com.sun.tools.ws.wsdl.framework.Entity
errorReceiver
 
Constructor Summary
Operation(Locator locator)
           
 
Method Summary
 void accept(WSDLDocumentVisitor visitor)
           
 void addExtension(TWSDLExtension e)
          An TWSDLExtensionHandler will call this method to add an TWSDLExtension object
 void addFault(Fault f)
           
 Iterable<? extends TWSDLExtension> extensions()
          Gives iterator over TWSDLExtensions
 Iterable<Fault> faults()
           
 Documentation getDocumentation()
           
 QName getElementName()
           
 Map<String,com.sun.codemodel.JClass> getFaults()
          Gives a Map of fault name attribute value to the JClass
 Input getInput()
           
 String getName()
           
 String getNamespaceURI()
          Gives namespace URI of a wsdl extensibility element.
 String getNameValue()
          Gives the wsdl extensiblity element's name attribute value.
 Output getOutput()
           
 String getParameterOrder()
           
 TWSDLExtensible getParent()
          Gives the parent of a wsdl extensibility element.
 OperationStyle getStyle()
           
 String getUniqueKey()
           
 QName getWSDLElementName()
          Gives the WSDL element or WSDL extensibility element name
 void putFault(String faultName, com.sun.codemodel.JClass exception)
           
 void setDocumentation(Documentation d)
           
 void setInput(Input i)
           
 void setName(String name)
           
 void setOutput(Output o)
           
 void setParameterOrder(String s)
           
 void setParent(TWSDLExtensible parent)
           
 void setStyle(OperationStyle s)
           
 void validateThis()
           
 void withAllSubEntitiesDo(EntityAction action)
           
 
Methods inherited from class com.sun.tools.ws.wsdl.framework.Entity
failValidation, failValidation, getLocator, getProperty, removeProperty, setErrorReceiver, setProperty, withAllEntityReferencesDo, withAllQNamesDo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Operation

public Operation(Locator locator)
Method Detail

getName

public String getName()

setName

public void setName(String name)

getUniqueKey

public String getUniqueKey()

getStyle

public OperationStyle getStyle()

setStyle

public void setStyle(OperationStyle s)

getInput

public Input getInput()

setInput

public void setInput(Input i)

getOutput

public Output getOutput()

setOutput

public void setOutput(Output o)

addFault

public void addFault(Fault f)

faults

public Iterable<Fault> faults()

getParameterOrder

public String getParameterOrder()

setParameterOrder

public void setParameterOrder(String s)

getElementName

public QName getElementName()
Specified by:
getElementName in interface Elemental

getDocumentation

public Documentation getDocumentation()

setDocumentation

public void setDocumentation(Documentation d)

withAllSubEntitiesDo

public void withAllSubEntitiesDo(EntityAction action)
Overrides:
withAllSubEntitiesDo in class Entity

accept

public void accept(WSDLDocumentVisitor visitor)
            throws Exception
Throws:
Exception

validateThis

public void validateThis()
Specified by:
validateThis in class Entity

getNameValue

public String getNameValue()
Description copied from interface: TWSDLExtensible
Gives the wsdl extensiblity element's name attribute value. It can be null as @name on some of the wsdl extensibility elements are optinal such as wsdl:input

Specified by:
getNameValue in interface TWSDLExtensible

getNamespaceURI

public String getNamespaceURI()
Description copied from interface: TWSDLExtensible
Gives namespace URI of a wsdl extensibility element.

Specified by:
getNamespaceURI in interface TWSDLExtensible

getWSDLElementName

public QName getWSDLElementName()
Description copied from interface: TWSDLExtensible
Gives the WSDL element or WSDL extensibility element name

Specified by:
getWSDLElementName in interface TWSDLExtensible

addExtension

public void addExtension(TWSDLExtension e)
Description copied from interface: TWSDLExtensible
An TWSDLExtensionHandler will call this method to add an TWSDLExtension object

Specified by:
addExtension in interface TWSDLExtensible
Parameters:
e - non-null extension object

extensions

public Iterable<? extends TWSDLExtension> extensions()
Description copied from interface: TWSDLExtensible
Gives iterator over TWSDLExtensions

Specified by:
extensions in interface TWSDLExtensible

getParent

public TWSDLExtensible getParent()
Description copied from interface: TWSDLExtensible
Gives the parent of a wsdl extensibility element.
 For example,

     
         
     ...
 Here, the TWSDLExtensiblerepresenting wsdl:operation's parent would be wsdl:portType

Specified by:
getParent in interface TWSDLExtensible
Returns:
null if the TWSDLExtensible has no parent, root of wsdl document - wsdl:definition.

setParent

public void setParent(TWSDLExtensible parent)

getFaults

public Map<String,com.sun.codemodel.JClass> getFaults()
Description copied from interface: TWSDLOperation
Gives a Map of fault name attribute value to the JClass

Specified by:
getFaults in interface TWSDLOperation

putFault

public void putFault(String faultName,
                     com.sun.codemodel.JClass exception)