org.specrunner.plugins.core.elements
Class PluginLink

java.lang.Object
  extended by org.specrunner.parameters.core.ParameterHolder
      extended by org.specrunner.plugins.core.AbstractPlugin
          extended by org.specrunner.plugins.core.elements.AbstractPluginResource
              extended by org.specrunner.plugins.core.elements.AbstractPluginResourceReplaceable
                  extended by org.specrunner.plugins.core.elements.PluginLink
All Implemented Interfaces:
IParameterHolder, IActionType, IParalelPlugin, IPlugin, ISleepPlugin, ITestPlugin, ITimedPlugin, IWaitPlugin

public class PluginLink
extends AbstractPluginResourceReplaceable

Add resources of 'link' tags.

Author:
Thiago Santos

Field Summary
 
Fields inherited from class org.specrunner.plugins.core.elements.AbstractPluginResourceReplaceable
pathToFile, serialNumber
 
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
PluginLink()
           
 
Method Summary
protected  void addResource(ISource source, String path, nu.xom.Element element)
          Add the resource as a reference.
 String getHref()
          Get location.
protected  String getReferenceName()
          Get attribute reference name.
protected  String getReferenceValue()
          Get the previous attribute value.
 void setHref(String href)
          Set location.
 
Methods inherited from class org.specrunner.plugins.core.elements.AbstractPluginResourceReplaceable
doStart, getActionType, replaceName
 
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
 

Constructor Detail

PluginLink

public PluginLink()
Method Detail

getHref

public String getHref()
Get location.

Returns:
The link location.

setHref

public void setHref(String href)
Set location.

Parameters:
href - The location.

getReferenceName

protected String getReferenceName()
Description copied from class: AbstractPluginResourceReplaceable
Get attribute reference name.

Specified by:
getReferenceName in class AbstractPluginResourceReplaceable
Returns:
The attribute name.

getReferenceValue

protected String getReferenceValue()
Description copied from class: AbstractPluginResourceReplaceable
Get the previous attribute value.

Specified by:
getReferenceValue in class AbstractPluginResourceReplaceable
Returns:
The attribute (reference) value.

addResource

protected void addResource(ISource source,
                           String path,
                           nu.xom.Element element)
Description copied from class: AbstractPluginResourceReplaceable
Add the resource as a reference.

Specified by:
addResource in class AbstractPluginResourceReplaceable
Parameters:
source - The source.
path - The target path.
element - The resource element.


Copyright © 2014. All rights reserved.