public abstract class AbstractOperation extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected String |
name |
| Constructor and Description |
|---|
AbstractOperation(String name,
String descrption) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Get the operation code associated to this operation.
|
String |
getDescription() |
String |
getName() |
abstract Object |
invoke(Object self,
OperationContext context)
Invokes this operation in the context.
|
public String getName()
public String getDescription()
public int getCode()
throws OperationNotSupportedException
OperationNotSupportedExceptionpublic abstract Object invoke(Object self, OperationContext context) throws OperationException
self - the object to which apply this operationctx - Parameter containerOperationException - The implementation is responsible to throw this exception
when needed.