org.apache.tuscany.sca.interfacedef.impl
Class OperationImpl

java.lang.Object
  extended by org.apache.tuscany.sca.interfacedef.impl.OperationImpl
All Implemented Interfaces:
java.lang.Cloneable, Operation, IntentAttachPoint, PolicySetAttachPoint
Direct Known Subclasses:
JavaOperationImpl, WSDLOperationImpl

public class OperationImpl
extends java.lang.Object
implements Operation

Represents an operation on a service interface.


Constructor Summary
OperationImpl()
           
 
Method Summary
 OperationImpl clone()
          Implementations must support cloning.
 boolean equals(java.lang.Object obj)
           
 java.util.List<PolicySet> getApplicablePolicySets()
          Returns a list of policy sets defined in the domain, that are applicable to this PolicySetAttachPoint.
 ConversationSequence getConversationSequence()
          Get the sequence of the conversation
 java.lang.String getDataBinding()
           
 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
 java.util.List<PolicySet> getPolicySets()
          Returns a list of policy sets.
 java.util.List<Intent> getRequiredIntents()
          Returns a list of policy intents.
 IntentAttachPointType getType()
          Returns the type of the attach point such as a BindingType or an ImplementationType and so on
 WrapperInfo getWrapper()
           
 int hashCode()
           
 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 conversationSequence)
          Set the sequence of conversation for the operation
 void setDataBinding(java.lang.String dataBinding)
           
 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 setType(IntentAttachPointType type)
          Sets the type of the attach point such as a BindingType or an ImplementationType and so on
 void setUnresolved(boolean undefined)
          Sets whether the model element is unresolved.
 void setWrapper(WrapperInfo wrapperInfo)
           
 void setWrapperStyle(boolean wrapperStyle)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationImpl

public OperationImpl()
Parameters:
name -
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Operation
Returns the name of the operation.

Specified by:
getName in interface Operation
Returns:
the name of the operation

setName

public void setName(java.lang.String name)
Description copied from interface: Operation
Sets the name of the operation.

Specified by:
setName in interface Operation
Parameters:
name - the name of the operation

isUnresolved

public boolean isUnresolved()
Description copied from interface: Operation
Returns true if the model element is unresolved.

Specified by:
isUnresolved in interface Operation
Returns:
true if the model element is unresolved.

setUnresolved

public void setUnresolved(boolean undefined)
Description copied from interface: Operation
Sets whether the model element is unresolved.

Specified by:
setUnresolved in interface Operation
Parameters:
undefined - whether the model element is unresolved

getFaultTypes

public java.util.List<DataType> getFaultTypes()
Description copied from interface: Operation
Get a list of data types to represent the faults/exceptions

Specified by:
getFaultTypes in interface Operation
Returns:
the faultTypes

setFaultTypes

public void setFaultTypes(java.util.List<DataType> faultTypes)
Specified by:
setFaultTypes in interface Operation
Parameters:
faultTypes - the faultTypes to set

getInputType

public DataType<java.util.List<DataType>> getInputType()
Description copied from interface: Operation
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

Specified by:
getInputType in interface Operation
Returns:
the inputType

setInputType

public void setInputType(DataType<java.util.List<DataType>> inputType)
Specified by:
setInputType in interface Operation
Parameters:
inputType - the inputType to set

getOutputType

public DataType getOutputType()
Description copied from interface: Operation
Get the data type for the output

Specified by:
getOutputType in interface Operation
Returns:
the outputType

setOutputType

public void setOutputType(DataType outputType)
Specified by:
setOutputType in interface Operation
Parameters:
outputType - the outputType to set

getInterface

public Interface getInterface()
Description copied from interface: Operation
Get the owning interface

Specified by:
getInterface in interface Operation
Returns:
the interface

setInterface

public void setInterface(Interface interfaze)
Description copied from interface: Operation
Set the owning interface

Specified by:
setInterface in interface Operation
Parameters:
interfaze - the interface to set

getConversationSequence

public ConversationSequence getConversationSequence()
Description copied from interface: Operation
Get the sequence of the conversation

Specified by:
getConversationSequence in interface Operation
Returns:
the conversationSequence

setConversationSequence

public void setConversationSequence(ConversationSequence conversationSequence)
Description copied from interface: Operation
Set the sequence of conversation for the operation

Specified by:
setConversationSequence in interface Operation
Parameters:
conversationSequence - the conversationSequence to set

isNonBlocking

public boolean isNonBlocking()
Description copied from interface: Operation
Indicate if the operation is non-blocking

Specified by:
isNonBlocking in interface Operation
Returns:
the nonBlocking

setNonBlocking

public void setNonBlocking(boolean nonBlocking)
Description copied from interface: Operation
Set the operation to be non-blocking

Specified by:
setNonBlocking in interface Operation
Parameters:
nonBlocking - the nonBlocking to set

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getWrapper

public WrapperInfo getWrapper()
Specified by:
getWrapper in interface Operation
Returns:
the wrapperInfo

setWrapper

public void setWrapper(WrapperInfo wrapperInfo)
Specified by:
setWrapper in interface Operation
Parameters:
wrapperInfo - the wrapperInfo to set

isWrapperStyle

public boolean isWrapperStyle()
Specified by:
isWrapperStyle in interface Operation
Returns:
the wrapperStyle

setWrapperStyle

public void setWrapperStyle(boolean wrapperStyle)
Specified by:
setWrapperStyle in interface Operation
Parameters:
wrapperStyle - the wrapperStyle to set

getDataBinding

public java.lang.String getDataBinding()
Specified by:
getDataBinding in interface Operation
Returns:

setDataBinding

public void setDataBinding(java.lang.String dataBinding)
Specified by:
setDataBinding in interface Operation

isDynamic

public boolean isDynamic()
Description copied from interface: Operation
Returns true if the operation is dynamic.

Specified by:
isDynamic in interface Operation
Returns:
true if the operation is dynamic otherwise false

setDynamic

public void setDynamic(boolean b)
Description copied from interface: Operation
Set if the operation is dynamic

Specified by:
setDynamic in interface Operation

getFaultBeans

public java.util.Map<javax.xml.namespace.QName,java.util.List<DataType<XMLType>>> getFaultBeans()
Description copied from interface: Operation
Get the synthesized fault beans for this operation

Specified by:
getFaultBeans in interface Operation
Returns:
the fault beans

setFaultBeans

public void setFaultBeans(java.util.Map<javax.xml.namespace.QName,java.util.List<DataType<XMLType>>> faultBeans)
Description copied from interface: Operation
Set the synthesized fault beans for this operation

Specified by:
setFaultBeans in interface Operation

clone

public OperationImpl clone()
                    throws java.lang.CloneNotSupportedException
Description copied from interface: Operation
Implementations must support cloning.

Specified by:
clone in interface Operation
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

getApplicablePolicySets

public java.util.List<PolicySet> getApplicablePolicySets()
Description copied from interface: PolicySetAttachPoint
Returns a list of policy sets defined in the domain, that are applicable to this PolicySetAttachPoint. An applicable PolicySet is one that include this PolicySetAttachPoint as part of its 'appliesTo' XPath attribute.

Specified by:
getApplicablePolicySets in interface PolicySetAttachPoint
Returns:
a list of policy sets applicable to this PolicySetAttachPoint

getPolicySets

public java.util.List<PolicySet> getPolicySets()
Description copied from interface: PolicySetAttachPoint
Returns a list of policy sets. See the Policy Framework specification for a description of this attribute.

Specified by:
getPolicySets in interface PolicySetAttachPoint
Returns:
a list of policy sets.

getRequiredIntents

public java.util.List<Intent> getRequiredIntents()
Description copied from interface: IntentAttachPoint
Returns a list of policy intents. See the Policy Framework specification for a description of this attribute.

Specified by:
getRequiredIntents in interface IntentAttachPoint
Returns:
a list of policy intents.

getType

public IntentAttachPointType getType()
Description copied from interface: IntentAttachPoint
Returns the type of the attach point such as a BindingType or an ImplementationType and so on

Specified by:
getType in interface IntentAttachPoint
Returns:

setType

public void setType(IntentAttachPointType type)
Description copied from interface: IntentAttachPoint
Sets the type of the attach point such as a BindingType or an ImplementationType and so on

Specified by:
setType in interface IntentAttachPoint