org.apache.tuscany.sca.interfacedef
Interface Operation

All Superinterfaces:
java.lang.Cloneable, IntentAttachPoint, PolicySetAttachPoint
All Known Subinterfaces:
JavaOperation, WSDLOperation
All Known Implementing Classes:
JavaOperationImpl, OperationImpl, WSDLOperationImpl

public interface Operation
extends java.lang.Cloneable, PolicySetAttachPoint

Represents an operation on a service interface.


Method Summary
 java.lang.Object clone()
          Implementations must support cloning.
 ConversationSequence getConversationSequence()
          Get the sequence of the conversation
 java.lang.String getDataBinding()
          Deprecated. This should be the WrapperInfo.getDataBinding() Get the databinding for the operation
 java.util.Map<javax.xml.namespace.QName,java.util.List<DataType<XMLType>>> getFaultBeans()
          Get the synthesized fault beans for this operation
 java.util.List<DataType> getFaultTypes()
          Get a list of data types to represent the faults/exceptions
 DataType<java.util.List<DataType>> getInputType()
          Get the data type that represents the input of this operation.
 Interface getInterface()
          Get the owning interface
 java.lang.String getName()
          Returns the name of the operation.
 DataType getOutputType()
          Get the data type for the output
 WrapperInfo getWrapper()
           
 boolean isDynamic()
          Returns true if the operation is dynamic.
 boolean isNonBlocking()
          Indicate if the operation is non-blocking
 boolean isUnresolved()
          Returns true if the model element is unresolved.
 boolean isWrapperStyle()
           
 void setConversationSequence(ConversationSequence sequence)
          Set the sequence of conversation for the operation
 void setDataBinding(java.lang.String dataBinding)
          Deprecated. This should be the WrapperInfo.setDataBinding() Set the databinding for the operation
 void setDynamic(boolean b)
          Set if the operation is dynamic
 void setFaultBeans(java.util.Map<javax.xml.namespace.QName,java.util.List<DataType<XMLType>>> faultBeans)
          Set the synthesized fault beans for this operation
 void setFaultTypes(java.util.List<DataType> faultTypes)
           
 void setInputType(DataType<java.util.List<DataType>> inputType)
           
 void setInterface(Interface interfaze)
          Set the owning interface
 void setName(java.lang.String name)
          Sets the name of the operation.
 void setNonBlocking(boolean nonBlocking)
          Set the operation to be non-blocking
 void setOutputType(DataType outputType)
           
 void setUnresolved(boolean unresolved)
          Sets whether the model element is unresolved.
 void setWrapper(WrapperInfo wrapperInfo)
           
 void setWrapperStyle(boolean wrapperStyle)
           
 
Methods inherited from interface org.apache.tuscany.sca.policy.PolicySetAttachPoint
getApplicablePolicySets, getPolicySets
 
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint
getRequiredIntents, getType, setType
 

Method Detail

getName

java.lang.String getName()
Returns the name of the operation.

Returns:
the name of the operation

setName

void setName(java.lang.String name)
Sets the name of the operation.

Parameters:
name - the name of the operation

isUnresolved

boolean isUnresolved()
Returns true if the model element is unresolved.

Returns:
true if the model element is unresolved.

setUnresolved

void setUnresolved(boolean unresolved)
Sets whether the model element is unresolved.

Parameters:
unresolved - whether the model element is unresolved

getInputType

DataType<java.util.List<DataType>> getInputType()
Get the data type that represents the input of this operation. The logic type is a list of data types and each element represents a parameter

Returns:
the inputType

setInputType

void setInputType(DataType<java.util.List<DataType>> inputType)
Parameters:
inputType -

getOutputType

DataType getOutputType()
Get the data type for the output

Returns:
the outputType

setOutputType

void setOutputType(DataType outputType)
Parameters:
outputType -

getFaultTypes

java.util.List<DataType> getFaultTypes()
Get a list of data types to represent the faults/exceptions

Returns:
the faultTypes

setFaultTypes

void setFaultTypes(java.util.List<DataType> faultTypes)
Parameters:
faultTypes -

getInterface

Interface getInterface()
Get the owning interface

Returns:

setInterface

void setInterface(Interface interfaze)
Set the owning interface

Parameters:
interfaze -

getConversationSequence

ConversationSequence getConversationSequence()
Get the sequence of the conversation

Returns:

setConversationSequence

void setConversationSequence(ConversationSequence sequence)
Set the sequence of conversation for the operation

Parameters:
sequence -

isNonBlocking

boolean isNonBlocking()
Indicate if the operation is non-blocking

Returns:

setNonBlocking

void setNonBlocking(boolean nonBlocking)
Set the operation to be non-blocking


getWrapper

WrapperInfo getWrapper()
Returns:
the wrapperInfo

setWrapper

void setWrapper(WrapperInfo wrapperInfo)
Parameters:
wrapperInfo - the wrapperInfo to set

isWrapperStyle

boolean isWrapperStyle()
Returns:
the wrapperStyle

setWrapperStyle

void setWrapperStyle(boolean wrapperStyle)
Parameters:
wrapperStyle - the wrapperStyle to set

getDataBinding

@Deprecated
java.lang.String getDataBinding()
Deprecated. This should be the WrapperInfo.getDataBinding() Get the databinding for the operation

Returns:

setDataBinding

@Deprecated
void setDataBinding(java.lang.String dataBinding)
Deprecated. This should be the WrapperInfo.setDataBinding() Set the databinding for the operation

Parameters:
dataBinding -

isDynamic

boolean isDynamic()
Returns true if the operation is dynamic.

Returns:
true if the operation is dynamic otherwise false

setDynamic

void setDynamic(boolean b)
Set if the operation is dynamic

Parameters:
b -

getFaultBeans

java.util.Map<javax.xml.namespace.QName,java.util.List<DataType<XMLType>>> getFaultBeans()
Get the synthesized fault beans for this operation

Returns:
the fault beans

setFaultBeans

void setFaultBeans(java.util.Map<javax.xml.namespace.QName,java.util.List<DataType<XMLType>>> faultBeans)
Set the synthesized fault beans for this operation

Parameters:
faultBeans -

clone

java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Implementations must support cloning.

Throws:
java.lang.CloneNotSupportedException