com.togethersoft.testing.host
Interface ITarget


public interface ITarget
extends ISuiteEntry

Represents a target in test suite. In current implementation it is target in ant project


Method Summary
 voidaddDependency(String targetName)
          Adds dependency on given target name
 String[]getDependencies()
          Returns an array of target names this target depends on
 StringgetIfProperty()
          Returns the value of 'if' property
 ITask[]getTasks()
          Returns an array of tasks contained in this target
 StringgetUnlessProperty()
          Returns the value of 'unless' property
 booleanhasDependency(String targetName)
          Returns true if this target depends on given target name
 ITaskpaste(ITask task, ISuiteEntry anchor, boolean before)
          Pastes a task into this target
 voidremoveDependency(String targetName)
          Removes dependency on given target
 voidreplaceDependency(String oldTargetName, String newTargetName)
          Replaces the dependency on oldTargetName with dependency on newTargetName
 voidsetDependencies(String[] targetNames)
          Sets dependencies on given targets
 voidsetIfProperty(String propertyName)
          Sets the vaule of 'if' property
 voidsetUnlessProperty(String propertyName)
          Sets the vaule of 'unless' property

Methods inherited from interface com.togethersoft.testing.host.ISuiteEntry
addUserObject, copy, cut, delete, getContainingSuite, removeUserObject, removeUserObjects, setAttribute, setName

Methods inherited from interface com.togethersoft.testing.shared.IElementRO
getAttribute, getChild, getContent, getName, getRefId, getUserObjects, hasUserObject

Method Detail

addDependency

public void addDependency(String targetName)
Adds dependency on given target name

getDependencies

public String[] getDependencies()
Returns an array of target names this target depends on

getIfProperty

public String getIfProperty()
Returns the value of 'if' property

getTasks

public ITask[] getTasks()
Returns an array of tasks contained in this target

getUnlessProperty

public String getUnlessProperty()
Returns the value of 'unless' property

hasDependency

public boolean hasDependency(String targetName)
Returns true if this target depends on given target name

paste

public ITask paste(ITask task, ISuiteEntry anchor, boolean before)
throws TestHostException
Pastes a task into this target

removeDependency

public void removeDependency(String targetName)
Removes dependency on given target

replaceDependency

public void replaceDependency(String oldTargetName, String newTargetName)
Replaces the dependency on oldTargetName with dependency on newTargetName

setDependencies

public void setDependencies(String[] targetNames)
Sets dependencies on given targets

setIfProperty

public void setIfProperty(String propertyName)
Sets the vaule of 'if' property

setUnlessProperty

public void setUnlessProperty(String propertyName)
Sets the vaule of 'unless' property