org.gcube.data.analysis.tabulardata.operation.factories.types
Class BaseWorkerFactory

java.lang.Object
  extended by org.gcube.data.analysis.tabulardata.operation.factories.types.BaseWorkerFactory
All Implemented Interfaces:
WorkerFactory
Direct Known Subclasses:
ColumnTransformationWorkerFactory, ColumnValidatorFactory, DataTransformationWorkerFactory, ExportWorkerFactory, ImportWorkerFactory, TableTransformationWorkerFactory, TableValidatorFactory

public abstract class BaseWorkerFactory
extends Object
implements WorkerFactory


Constructor Summary
BaseWorkerFactory()
           
 
Method Summary
protected  void checkColumnIdPresence(OperationInvocation invocation)
           
protected
<T> void
checkParameterValue(String id, Class<T> type, OperationInvocation invocation)
           
protected  void checkTableIdPresence(OperationInvocation invocation)
           
protected abstract  String getOperationDescription()
           
 OperationDescriptor getOperationDescriptor()
           
protected  OperationDescriptor.OperationId getOperationId()
           
protected abstract  String getOperationName()
           
protected abstract  OperationDescriptor.OperationScope getOperationScope()
           
protected abstract  OperationDescriptor.OperationType getOperationType()
           
protected
<T> T
getParameterValue(String id, Class<T> type, OperationInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gcube.data.analysis.tabulardata.operation.worker.WorkerFactory
createWorker
 

Constructor Detail

BaseWorkerFactory

public BaseWorkerFactory()
Method Detail

getOperationName

protected abstract String getOperationName()

getOperationDescription

protected abstract String getOperationDescription()

getOperationId

protected OperationDescriptor.OperationId getOperationId()

getOperationScope

protected abstract OperationDescriptor.OperationScope getOperationScope()

getOperationType

protected abstract OperationDescriptor.OperationType getOperationType()

getOperationDescriptor

public OperationDescriptor getOperationDescriptor()
Specified by:
getOperationDescriptor in interface WorkerFactory

checkParameterValue

protected <T> void checkParameterValue(String id,
                                       Class<T> type,
                                       OperationInvocation invocation)
                            throws InvalidInvocationException
Throws:
InvalidInvocationException

getParameterValue

protected <T> T getParameterValue(String id,
                                  Class<T> type,
                                  OperationInvocation invocation)
                       throws InvalidInvocationException
Throws:
InvalidInvocationException

checkTableIdPresence

protected void checkTableIdPresence(OperationInvocation invocation)
                             throws InvalidInvocationException
Throws:
InvalidInvocationException

checkColumnIdPresence

protected void checkColumnIdPresence(OperationInvocation invocation)
                              throws InvalidInvocationException
Throws:
InvalidInvocationException


Copyright © 2013. All Rights Reserved.