org.gvsig.tools.operations.impl
Class DefaultOperationManager

java.lang.Object
  extended by org.gvsig.tools.operations.impl.DefaultOperationManager
All Implemented Interfaces:
OperationManager

public class DefaultOperationManager
extends Object
implements OperationManager


Constructor Summary
DefaultOperationManager()
           
 
Method Summary
 Operation getOperation(Class theClass, int code)
           
 Operation getOperation(Class theClass, String name)
           
 Operation getOperation(Object obj, int code)
           
 Operation getOperation(Object obj, String name)
           
 int getOperationCode(Class theClass, String name)
           
 boolean hasOperation(Class theClass, int code)
           
 boolean hasOperation(Class theClass, String name)
           
 boolean hasOperation(Object obj, int code)
           
 boolean hasOperation(Object obj, String name)
           
 Object invokeOperation(Object obj, int code, OperationContext context)
           
 Object invokeOperation(Object obj, String name, OperationContext context)
           
 int registerOperation(Operation operation, Class theClass)
           
 int registerOperation(Operation operation, Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOperationManager

public DefaultOperationManager()
Method Detail

registerOperation

public int registerOperation(Operation operation,
                             Class theClass)
Specified by:
registerOperation in interface OperationManager

getOperation

public Operation getOperation(Object obj,
                              String name)
                       throws OperationNotSupportedException
Specified by:
getOperation in interface OperationManager
Throws:
OperationNotSupportedException

getOperation

public Operation getOperation(Class theClass,
                              String name)
                       throws OperationNotSupportedException
Specified by:
getOperation in interface OperationManager
Throws:
OperationNotSupportedException

getOperation

public Operation getOperation(Object obj,
                              int code)
                       throws OperationNotSupportedException
Specified by:
getOperation in interface OperationManager
Throws:
OperationNotSupportedException

getOperation

public Operation getOperation(Class theClass,
                              int code)
                       throws OperationNotSupportedException
Specified by:
getOperation in interface OperationManager
Throws:
OperationNotSupportedException

hasOperation

public boolean hasOperation(Object obj,
                            String name)
Specified by:
hasOperation in interface OperationManager

hasOperation

public boolean hasOperation(Object obj,
                            int code)
Specified by:
hasOperation in interface OperationManager

hasOperation

public boolean hasOperation(Class theClass,
                            String name)
Specified by:
hasOperation in interface OperationManager

hasOperation

public boolean hasOperation(Class theClass,
                            int code)
Specified by:
hasOperation in interface OperationManager

invokeOperation

public Object invokeOperation(Object obj,
                              String name,
                              OperationContext context)
                       throws OperationException
Specified by:
invokeOperation in interface OperationManager
Throws:
OperationException

invokeOperation

public Object invokeOperation(Object obj,
                              int code,
                              OperationContext context)
                       throws OperationException
Specified by:
invokeOperation in interface OperationManager
Throws:
OperationException

getOperationCode

public int getOperationCode(Class theClass,
                            String name)
                     throws OperationNotSupportedException
Specified by:
getOperationCode in interface OperationManager
Throws:
OperationNotSupportedException

registerOperation

public int registerOperation(Operation operation,
                             Object obj)
Specified by:
registerOperation in interface OperationManager


Copyright © 2004-2011 gvSIG. All Rights Reserved.