|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OperationDescriptor
Indicating an implementation of an operation for a specific type.
This class carries the ComplexType specific information requried for using an operation. Name, type and evaulation are defined.
Please see the description of OperationType for more guidelines on capturing operations for use with your model.
Method Summary | |
---|---|
Name |
getName()
Indicates Name of defined operation in a ComplexType, this method may never return a null value. |
OperationType |
getType()
Indicates the OpperationType of this attribute |
Object |
invoke(Attribute target,
Object[] params)
Call the operation with an attribtue and a set of parameters. |
boolean |
isImplemented()
Indicates if invoke may be called. |
Methods inherited from interface PropertyDescriptor |
---|
getUserData, putUserData, type |
Method Detail |
---|
OperationType getType()
Name getName()
getName
in interface PropertyDescriptor
boolean isImplemented()
In order allow for faithful modeling of a software system we will need construct models dynamically at runtime, possibly when no implementation has been discouvered for the required operations. (for example we may be modeling a schema where the operations are only available when the information is executed on a remote web processing service. We still need to track the operations, even those we cannot execute them in the current environment.
Object invoke(Attribute target, Object[] params) throws InvocationTargetException
The state of the operation may be used and / or updated during the execution of the operation.
Please check to ensure that isImplemented returns true
before calling invoke.
target
- This is the attribute used for context when evaulating the
operation, the target may have it's state changed over the
course of executationparams
- Parameters used to execute the opperation
InvoationTargetException
- if an error occured while processing
InvocationTargetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |