public interface Operation extends PropertyDescriptor
| Modifier and Type | Method and Description |
|---|---|
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.
|
getName, getUserData, isNillableint 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 operationInvoationTargetException - if an error occurred while processingInvocationTargetExceptionCopyright © 1996–2021 Geotools. All rights reserved.