|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Operation
An implementation of an operation that may be invoked on an Attribute.
| Method Summary | |
|---|---|
int |
getMaxOccurs()
Operations are not part of the structure. |
int |
getMinOccurs()
Operations are not part of the structure. |
OperationType |
getType()
Indicates the OpperationType of this attribute |
Object |
invoke(Attribute target,
Object[] params)
Invoke this operation on an attribute using the provided parameters. |
boolean |
isImplemented()
Indicates if invoke may be called. |
| Methods inherited from interface PropertyDescriptor |
|---|
getName, getUserData, isNillable |
| Method Detail |
|---|
int getMaxOccurs()
getMaxOccurs in interface PropertyDescriptorint getMinOccurs()
getMinOccurs in interface PropertyDescriptorOperationType getType()
getType in interface PropertyDescriptorboolean isImplemented()
In order allow for faithful description of a software system we will need construct models dynamically at runtime, possibly when no implementation of this Operation is available. As an example when working with features in a web application some operations may only be available when being executed on a remote web processing service.
Object invoke(Attribute target,
Object[] params)
throws InvocationTargetException
The state of the attribute may be used and / or updated during the execution of the operation.
Please check to ensure that isImplemented returns true
before calling invoke.
target - Attribute this operation is being applied to, the state of this
attribute may be changed by this operation.params - parameters used by the operation
InvoationTargetException - if an error occurred while processing
InvocationTargetException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||