|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cesta.trans.AbstractTransformation
public abstract class AbstractTransformation
Abstract transformation, which can be base of any transformation. It implements part of the Transformation interface.
Field Summary | |
---|---|
protected java.util.logging.Logger |
logger
Default logger for transformation |
Constructor Summary | |
---|---|
AbstractTransformation()
Default constructor, which initializes logger and default parameters. |
Method Summary | |
---|---|
void |
addMappedFile(MappedFile filePair)
Adds one mapped fileswhich should be transformed |
void |
clearParams()
Clears all parameters |
abstract void |
execute()
Main logic of transformation. |
java.util.Map<java.lang.String,java.lang.Object> |
getDefaultParams()
Returns default parameters |
java.util.List<MappedFile> |
getMappedFiles()
Returns list of mapped files, which should be transformed |
java.lang.Object |
getParam(java.lang.String name)
Returns previously set parameter with given name |
java.lang.Object |
getParam(java.lang.String name,
java.lang.Object defaultValue)
Returns previously set parameter with given name |
java.lang.Boolean |
getParamB(java.lang.String name)
Helper method for getting Boolean parameters |
java.lang.Boolean |
getParamB(java.lang.String name,
java.lang.Boolean defaultValue)
Helper method for getting Boolean parameters |
java.util.Map<java.lang.String,java.lang.Object> |
getParams()
Returns all set parameters for this transformation |
java.lang.String |
getParamS(java.lang.String name)
Helper method for getting String parameters |
java.lang.String |
getParamS(java.lang.String name,
java.lang.String defaultValue)
Helper method for getting String parameters |
void |
setMappedFiles(java.util.List<MappedFile> filePairs)
Sets list of mapped files, which should be transformed |
void |
setParam(java.lang.String name,
java.lang.Object value)
Sets one single parameter |
void |
setParams(java.util.Map<java.lang.String,java.lang.Object> params)
Sets list of parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.logging.Logger logger
Constructor Detail |
---|
public AbstractTransformation()
Method Detail |
---|
public java.util.List<MappedFile> getMappedFiles()
Transformation
getMappedFiles
in interface Transformation
public void setMappedFiles(java.util.List<MappedFile> filePairs)
Transformation
setMappedFiles
in interface Transformation
filePairs
- the file pairs to setpublic void addMappedFile(MappedFile filePair)
Transformation
addMappedFile
in interface Transformation
filePair
- the file pair to addpublic java.util.Map<java.lang.String,java.lang.Object> getParams()
getParams
in interface Transformation
public java.lang.Object getParam(java.lang.String name)
getParam
in interface Transformation
name
- name of parameter
public java.lang.Object getParam(java.lang.String name, java.lang.Object defaultValue)
getParam
in interface Transformation
name
- name of parameterdefaultValue
- default value
public java.lang.String getParamS(java.lang.String name)
public java.lang.String getParamS(java.lang.String name, java.lang.String defaultValue)
public java.lang.Boolean getParamB(java.lang.String name)
public java.lang.Boolean getParamB(java.lang.String name, java.lang.Boolean defaultValue)
public void setParams(java.util.Map<java.lang.String,java.lang.Object> params)
setParams
in interface Transformation
params
- list of parameterspublic void setParam(java.lang.String name, java.lang.Object value)
setParam
in interface Transformation
name
- name of parametervalue
- value of parameterpublic void clearParams()
clearParams
in interface Transformation
public java.util.Map<java.lang.String,java.lang.Object> getDefaultParams()
public abstract void execute() throws TransformationException
execute
in interface Transformation
TransformationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |