public abstract class AbstractOperation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
description |
protected java.lang.String |
name |
Constructor and Description |
---|
AbstractOperation(java.lang.String name,
java.lang.String descrption) |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Get the operation code associated to this operation.
|
java.lang.String |
getDescription() |
java.lang.String |
getName() |
abstract java.lang.Object |
invoke(java.lang.Object self,
OperationContext context)
Invokes this operation in the context.
|
protected java.lang.String name
protected java.lang.String description
public AbstractOperation(java.lang.String name, java.lang.String descrption)
public java.lang.String getName()
public java.lang.String getDescription()
public int getCode() throws OperationNotSupportedException
OperationNotSupportedException
public abstract java.lang.Object invoke(java.lang.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.