com.togethersoft.testing.shared
Interface IElementRO

All Known Subinterfaces:
IAssertion, ISuiteEntry, ITarget, ITask, ITestAsset, ITestAssetReference, ITestAssetRO, ITestCollection, ITestResultAsset, ITestServerAsset, ITestStep, ITestSuite

public interface IElementRO

Base interface for all test elements


Method Summary
 StringgetAttribute(String attr)
          Returns the value of attribute
 IElementRO[]getChild(String elementTagName)
          Returns an array of children of this element that have the given tag name
 StringgetContent()
          Returns the content of this element
 StringgetName()
          Returns the name of this element
 StringgetRefId()
          Returns the unique reference id for this element
 Object[]getUserObjects(String name)
          Returns an array of objects associated with given name
 booleanhasUserObject(String name, Object val)
          Returns true if the element has an object associated via given name

Method Detail

getAttribute

public String getAttribute(String attr)
Returns the value of attribute
Returns: The value of attribute attr

getChild

public IElementRO[] getChild(String elementTagName)
Returns an array of children of this element that have the given tag name
Parameters:
elementTagName

getContent

public String getContent()
Returns the content of this element

getName

public String getName()
Returns the name of this element
Returns: The name of this element

getRefId

public String getRefId()
Returns the unique reference id for this element

getUserObjects

public Object[] getUserObjects(String name)
Returns an array of objects associated with given name
Returns: array of objects which were associated with given key. If no objects were associated when array of 0 lenght is returned.
See Also:
com.togethersoft.testing.host.ITestAsset.addUserObject(java.lang.String,java.lang.Object), com.togethersoft.testing.host.ISuiteEntry.addUserObject(java.lang.String,java.lang.Object)

hasUserObject

public boolean hasUserObject(String name, Object val)
Returns true if the element has an object associated via given name