org.testng
Interface IAttributes

All Superinterfaces:
Serializable
All Known Subinterfaces:
ISuite, ITestContext, ITestResult
All Known Implementing Classes:
SuiteRunner, TestRunner

public interface IAttributes
extends Serializable

A trait that is used by all interfaces that lets the user add or remove their own attributes.


Method Summary
 Object getAttribute(String name)
           
 Set<String> getAttributeNames()
           
 Object removeAttribute(String name)
          Remove the attribute
 void setAttribute(String name, Object value)
          Set a custom attribute.
 

Method Detail

getAttribute

Object getAttribute(String name)
Parameters:
name - The name of the attribute to return

setAttribute

void setAttribute(String name,
                  Object value)
Set a custom attribute.


getAttributeNames

Set<String> getAttributeNames()
Returns:
all the attributes names.

removeAttribute

Object removeAttribute(String name)
Remove the attribute

Returns:
the attribute value if found, null otherwise


Copyright © 2012. All Rights Reserved.