svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libTools / src / org / gvsig / tools / operations / OperationManager.java @ 24064
History | View | Annotate | Download (1.12 KB)
1 |
package org.gvsig.tools.operations; |
---|---|
2 |
|
3 |
public interface OperationManager { |
4 |
|
5 |
public int getOperationCode(Class aClass, String name) |
6 |
throws OperationNotSupportedException; |
7 |
|
8 |
public Operation getOperation(Object obj, String name) |
9 |
throws OperationNotSupportedException; |
10 |
|
11 |
public Operation getOperation(Object obj, int code) |
12 |
throws OperationNotSupportedException; |
13 |
|
14 |
public Operation getOperation(Class aClass, String name) |
15 |
throws OperationNotSupportedException; |
16 |
|
17 |
public Operation getOperation(Class aClass, int code) |
18 |
throws OperationNotSupportedException; |
19 |
|
20 |
public Object invokeOperation(Object obj, String name, |
21 |
OperationContext context) throws OperationException;
|
22 |
|
23 |
public Object invokeOperation(Object obj, int code, OperationContext context) |
24 |
throws OperationException;
|
25 |
|
26 |
public boolean hasOperation(Object obj, String name); |
27 |
|
28 |
public boolean hasOperation(Object obj, int code); |
29 |
|
30 |
public boolean hasOperation(Class aClass, String name); |
31 |
|
32 |
public boolean hasOperation(Class aClass, int code); |
33 |
|
34 |
public int registerOperation(Operation operation, Object obj); |
35 |
|
36 |
public int registerOperation(Operation operation, Class aClass); |
37 |
} |