|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.parameters.core.ParameterHolder
org.specrunner.plugins.core.AbstractPlugin
org.specrunner.plugins.core.elements.AbstractPluginResource
org.specrunner.plugins.core.elements.AbstractPluginResourceReplaceable
public abstract class AbstractPluginResourceReplaceable
Plugin to replace resources.
| Field Summary | |
|---|---|
protected static ICache<String,String> |
pathToFile
Cache of resources per output file. |
protected static ThreadLocal<Integer> |
serialNumber
Static sequential number. |
| Fields inherited from class org.specrunner.plugins.core.elements.AbstractPluginResource |
|---|
FEATURE_SAVE |
| Fields inherited from class org.specrunner.plugins.core.AbstractPlugin |
|---|
FEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAIT |
| Constructor Summary | |
|---|---|
AbstractPluginResourceReplaceable()
|
|
| Method Summary | |
|---|---|
protected abstract void |
addResource(ISource source,
String path,
nu.xom.Element element)
Add the resource as a reference. |
ENext |
doStart(IContext context,
IResultSet result)
Performs the start action. i.e. create a database schema. |
ActionType |
getActionType()
Get the plugin type. |
protected abstract String |
getReferenceName()
Get attribute reference name. |
protected abstract String |
getReferenceValue()
Get the previous attribute value. |
protected void |
replaceName(nu.xom.Element element,
String newName)
Replace old reference by the new created. |
| Methods inherited from class org.specrunner.plugins.core.elements.AbstractPluginResource |
|---|
getSave, initialize, isSave, setSave |
| Methods inherited from class org.specrunner.plugins.core.AbstractPlugin |
|---|
copy, doEnd, getCondition, getConditionModel, getNormalized, getNormalized, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, setCondition, setConditionModel, setNormalized, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toString |
| Methods inherited from class org.specrunner.parameters.core.ParameterHolder |
|---|
getParameters, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.specrunner.parameters.IParameterHolder |
|---|
getParameters, setParameters |
| Field Detail |
|---|
protected static ICache<String,String> pathToFile
protected static ThreadLocal<Integer> serialNumber
| Constructor Detail |
|---|
public AbstractPluginResourceReplaceable()
| Method Detail |
|---|
public ActionType getActionType()
IActionType
public ENext doStart(IContext context,
IResultSet result)
throws PluginException
IPlugin
doStart in interface IPlugindoStart in class AbstractPlugincontext - The context.result - The result set.
PluginException - On execution errors.protected abstract String getReferenceName()
protected abstract String getReferenceValue()
protected abstract void addResource(ISource source,
String path,
nu.xom.Element element)
source - The source.path - The target path.element - The resource element.
protected void replaceName(nu.xom.Element element,
String newName)
element - The element.newName - The attribute new value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||