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, isNillable
int getMaxOccurs()
getMaxOccurs
in interface PropertyDescriptor
int getMinOccurs()
getMinOccurs
in interface PropertyDescriptor
OperationType getType()
getType
in interface PropertyDescriptor
boolean 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 processingInvocationTargetException
Copyright © 1996–2022 Geotools. All rights reserved.