|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.spi.model.Operation<T>
public class Operation<T>
Represents an operation that is part of a service contract. The type paramter of this operation identifies the logical type system for all data types.
Field Summary | |
---|---|
protected Map<String,Object> |
metaData
|
Constructor Summary | |
---|---|
Operation(String name,
DataType<List<DataType<T>>> inputType,
DataType<T> outputType,
List<DataType<T>> faultTypes)
Construct a minimally-specified operation |
|
Operation(String name,
DataType<List<DataType<T>>> inputType,
DataType<T> outputType,
List<DataType<T>> faultTypes,
boolean nonBlocking,
String dataBinding)
Construct an operation |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getDataBinding()
Returns the data binding type specified for the operation or null. |
List<DataType<T>> |
getFaultTypes()
Returns the data types of the faults raised by the operation. |
DataType<List<DataType<T>>> |
getInputType()
Returns the data types of the parameters passed to the operation. |
Map<String,Object> |
getMetaData()
Returns a map of metadata key to value mappings for the operation. |
String |
getName()
Returns the name of the operation. |
DataType<T> |
getOutputType()
Returns the data type returned by the operation. |
ServiceContract<T> |
getServiceContract()
Returns the service contract the operation is part of. |
WrapperInfo |
getWrapper()
Return the Wrapper information for this operation is it's wrapper style |
int |
hashCode()
|
boolean |
isCallback()
Returns true if the operation is part of the callback contract. |
boolean |
isNonBlocking()
Returns true if the operation is non-blocking. |
boolean |
isWrapperStyle()
Returns true if the operation is wrapper style |
void |
setCallback(boolean callback)
Sets whether the operation is part of the callback contract. |
void |
setDataBinding(String dataBinding)
Set the databinding for this operation |
void |
setMetaData(String key,
Object val)
Adds metadata associated with the operation. |
void |
setNonBlocking(boolean nonBlocking)
Sets if the operation is non-blocking |
void |
setServiceContract(ServiceContract<T> contract)
Sets the service contract the operation is part of. |
void |
setWrapper(WrapperInfo wrapper)
|
void |
setWrapperStyle(boolean wrapperStyle)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Map<String,Object> metaData
Constructor Detail |
---|
public Operation(String name, DataType<List<DataType<T>>> inputType, DataType<T> outputType, List<DataType<T>> faultTypes)
name
- the name of the operationinputType
- the data types of parameters passed to the operationoutputType
- the data type returned by the operationfaultTypes
- the data type of faults raised by the operationpublic Operation(String name, DataType<List<DataType<T>>> inputType, DataType<T> outputType, List<DataType<T>> faultTypes, boolean nonBlocking, String dataBinding)
name
- the name of the operationinputType
- the data types of parameters passed to the operationoutputType
- the data type returned by the operationfaultTypes
- the data type of faults raised by the operationnonBlocking
- if the operation is non-blockingdataBinding
- the data-binding type required by the operationMethod Detail |
---|
public ServiceContract<T> getServiceContract()
public void setServiceContract(ServiceContract<T> contract)
contract
- the service contract the operation is part of.public boolean isCallback()
public void setCallback(boolean callback)
callback
- whether the operation is part of the callback contract.public String getName()
public DataType<T> getOutputType()
public DataType<List<DataType<T>>> getInputType()
public List<DataType<T>> getFaultTypes()
public boolean isNonBlocking()
public String getDataBinding()
public void setDataBinding(String dataBinding)
dataBinding
- The databindingpublic Map<String,Object> getMetaData()
public void setMetaData(String key, Object val)
key
- the metadata keyval
- the metadata valuepublic void setNonBlocking(boolean nonBlocking)
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean isWrapperStyle()
public WrapperInfo getWrapper()
public void setWrapper(WrapperInfo wrapper)
wrapper
- the wrapper to setpublic void setWrapperStyle(boolean wrapperStyle)
wrapperStyle
- the wrapperStyle to set
|
Apache Tuscany SCA Kernel Sub-Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |