org.ws4d.java.wsdl
Class WSDLOperation

java.lang.Object
  extended by org.ws4d.java.types.AttributableSupport
      extended by org.ws4d.java.wsdl.WSDLOperation
All Implemented Interfaces:
Attributable

public class WSDLOperation
extends AttributableSupport

Implementation of the WSDL 1.1 Operation.
WSDL 1.1, 2.4ff


Field Summary
static int TYPE_NOTIFICATION
           
static int TYPE_ONE_WAY
           
static int TYPE_REQUEST_RESPONSE
           
static int TYPE_SOLICIT_RESPONSE
           
static int TYPE_UNKNOWN
           
 
Constructor Summary
WSDLOperation()
          Create an empty WSDL operation with a name set to null.
WSDLOperation(java.lang.String name)
           
 
Method Summary
 void addFault(IOType fault)
           
 IOType getFault(java.lang.String name)
           
 HashMap getFaultActions()
           
 WSDLMessage getFaultMessage(java.lang.String name)
           
 DataStructure getFaultMessages()
           
 DataStructure getFaultParts(java.lang.String faultName)
          Returns a data structure of WSDLMessagePart instances describing the parts of this operation's named fault message.
 DataStructure getFaults()
           
 IOType getInput()
           
 java.lang.String getInputAction()
          Returns the WS-Addressing action URI for the input of this operation if any.
 WSDLMessage getInputMessage()
           
 java.lang.String getInputName()
           
 DataStructure getInputParts()
          Returns a data structure of WSDLMessagePart instances describing the parts of this operation's input message.
 java.lang.String getName()
           
 java.lang.String getNamespace()
          Returns the namespace within which this operation resides.
 IOType getOutput()
           
 java.lang.String getOutputAction()
          Returns the WS-Addressing action URI for the output of this operation if any.
 WSDLMessage getOutputMessage()
           
 java.lang.String getOutputName()
           
 DataStructure getOutputParts()
          Returns a data structure of WSDLMessagePart instances describing the parts of this oepration's output message.
 WSDLPortType getPortType()
           
 int getType()
           
 java.lang.String getTypeAsString()
           
 WSDL getWsdl()
           
 boolean isBidirectional()
          Returns true only if this operation's transmission type is either request-response or solicit-response.
 boolean isEvented()
           
 boolean isRequest()
           
 void setAttribute(QName name, CustomAttributeValue value)
          Sets the value for the attribute with the specified name.
 void setAttributes(HashMap attributes)
          Sets all attributes at once to those contained within argument attributes.
 void setInput(IOType input)
           
 void setName(java.lang.String name)
           
 void setOutput(IOType output)
           
 void setType(int type)
           
 java.lang.String toString()
           
static java.lang.String typeToString(int operationType)
           
 
Methods inherited from class org.ws4d.java.types.AttributableSupport
equals, getAttribute, getAttributes, hasAttributes, hashCode, serializeAttributes, setAttribute
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_UNKNOWN

public static final int TYPE_UNKNOWN
See Also:
Constant Field Values

TYPE_ONE_WAY

public static final int TYPE_ONE_WAY
See Also:
Constant Field Values

TYPE_REQUEST_RESPONSE

public static final int TYPE_REQUEST_RESPONSE
See Also:
Constant Field Values

TYPE_SOLICIT_RESPONSE

public static final int TYPE_SOLICIT_RESPONSE
See Also:
Constant Field Values

TYPE_NOTIFICATION

public static final int TYPE_NOTIFICATION
See Also:
Constant Field Values
Constructor Detail

WSDLOperation

public WSDLOperation()
Create an empty WSDL operation with a name set to null.


WSDLOperation

public WSDLOperation(java.lang.String name)
Parameters:
name -
Method Detail

typeToString

public static java.lang.String typeToString(int operationType)

toString

public java.lang.String toString()
Overrides:
toString in class AttributableSupport

setAttribute

public void setAttribute(QName name,
                         CustomAttributeValue value)
Description copied from interface: Attributable
Sets the value for the attribute with the specified name. Throws a java.lang.IllegalArgumentException in case name is null.

Specified by:
setAttribute in interface Attributable
Overrides:
setAttribute in class AttributableSupport
Parameters:
name - the name of the attribute to set, must not be null
value - the value to set the named attribute to (may be null

setAttributes

public void setAttributes(HashMap attributes)
Description copied from interface: Attributable
Sets all attributes at once to those contained within argument attributes. Note that depending on the actual implementation it is possible that the map attributes points at may be used for the actual internal storage of the attributes (i.e. without copying it). That is why, after passing it to this method, modifications to this map should be made with care. This method throws a java.lang.IllegalArgumentException in cases where attributes is null.

Specified by:
setAttributes in interface Attributable
Overrides:
setAttributes in class AttributableSupport
Parameters:
attributes - the new attributes to set

getWsdl

public WSDL getWsdl()

getInputParts

public DataStructure getInputParts()
Returns a data structure of WSDLMessagePart instances describing the parts of this operation's input message.

Returns:
the parts of this operation's input message

getOutputParts

public DataStructure getOutputParts()
Returns a data structure of WSDLMessagePart instances describing the parts of this oepration's output message.

Returns:
the parts of this operation's output message

getFaultParts

public DataStructure getFaultParts(java.lang.String faultName)
Returns a data structure of WSDLMessagePart instances describing the parts of this operation's named fault message.

Parameters:
faultName - the local name of the requested fault; a namespace equal to this operation's namespace is assumed
Returns:
the parts of this operation's named fault message.

getInputMessage

public WSDLMessage getInputMessage()

getOutputMessage

public WSDLMessage getOutputMessage()

getFaultMessages

public DataStructure getFaultMessages()
Returns:
the messages of all faults

getFaultMessage

public WSDLMessage getFaultMessage(java.lang.String name)
Parameters:
name - the local name of the fault of which to return the message; a namespace equal to this operation's namespace is assumed
Returns:
the message of the named fault or null

getInputName

public java.lang.String getInputName()
Returns:
the name of this WSDL operation's input, if any, or null

getOutputName

public java.lang.String getOutputName()
Returns:
the name of this WSDL operation's output, if any, or null

getNamespace

public java.lang.String getNamespace()
Returns the namespace within which this operation resides. This is the namespace of the surrounding port type if one exists, or null otherwise.

Returns:
the namespace of the port type of this operation, or null if port type not set

getName

public java.lang.String getName()
Returns:
the name

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

getType

public int getType()
Returns:
the type

setType

public void setType(int type)
Parameters:
type - the type to set

getTypeAsString

public java.lang.String getTypeAsString()

isRequest

public boolean isRequest()

isEvented

public boolean isEvented()

isBidirectional

public boolean isBidirectional()
Returns true only if this operation's transmission type is either request-response or solicit-response.

Returns:
whether this is a bidirectional operation or not

getInputAction

public java.lang.String getInputAction()
Returns the WS-Addressing action URI for the input of this operation if any.

Returns:
the WS-Addressing action URI for the input of this operation

getOutputAction

public java.lang.String getOutputAction()
Returns the WS-Addressing action URI for the output of this operation if any.

Returns:
the WS-Addressing action URI for the output of this operation

getFaultActions

public HashMap getFaultActions()

getInput

public IOType getInput()
Returns:
the input

setInput

public void setInput(IOType input)
Parameters:
input - the input to set

getOutput

public IOType getOutput()
Returns:
the output

setOutput

public void setOutput(IOType output)
Parameters:
output - the output to set

getFaults

public DataStructure getFaults()
Returns:
the faults

getFault

public IOType getFault(java.lang.String name)
Parameters:
name - the local name of the fault to return; a namespace equal to this operation's namespace is assumed
Returns:
the named fault or null

addFault

public void addFault(IOType fault)
Parameters:
fault - the fault to add

getPortType

public WSDLPortType getPortType()
Returns:
the portType