org.testng
Interface IAttributes

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

public interface IAttributes
extends java.io.Serializable

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


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

Method Detail

getAttribute

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

setAttribute

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


getAttributeNames

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

removeAttribute

java.lang.Object removeAttribute(java.lang.String name)
Remove the attribute

Returns:
the attribute value if found, null otherwise


Copyright © 2011. All Rights Reserved.