com.togethersoft.testing.host
Interface ITestCollection


public interface ITestCollection
extends ITestAsset

Represents a storage of test assets - a directory on disk


Method Summary
 Enumerationchildren()
          Returns enumeration of children of this collection
 Enumerationcollections()
          Returns children collection of this collection
 voiddelete(ITestAsset asset)
          removes an asset identified by ITestAsset asset from test collection
 ITestAssetgetChildAt(int index)
          Returns the child at given index
 URLgetCollectionLocation()
          Deprecated.  
 intgetNumChildren()
          Returns the number of children of this collection
 ITestAssetpaste(ITestAssetRO asset)
          Pastes asset into test collection.

Methods inherited from interface com.togethersoft.testing.host.ITestAsset
addUserObject, copy, cut, delete, getLocation, getParent, isReadOnly, pasteAttachments, removeUserObject, removeUserObjects, setAttribute, setName

Methods inherited from interface com.togethersoft.testing.shared.ITestAssetRO
getCategory

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

Method Detail

children

public Enumeration children()
Returns enumeration of children of this collection

collections

public Enumeration collections()
Returns children collection of this collection

delete

public void delete(ITestAsset asset)
throws TestHostException
removes an asset identified by ITestAsset asset from test collection

getChildAt

public ITestAsset getChildAt(int index)
Returns the child at given index

getCollectionLocation

public URL getCollectionLocation()
Deprecated.

getNumChildren

public int getNumChildren()
Returns the number of children of this collection

paste

public ITestAsset paste(ITestAssetRO asset)
throws TestHostException
Pastes asset into test collection. This method invokes TestAssetFactory#createAsset(asset, this )
to create copy of asset and adds it to this collection. Then ITestAsset#pasteAttachments is invoked to
paste additional files (if any).