Package org.testng.internal
Class Attributes
java.lang.Object
org.testng.internal.Attributes
- All Implemented Interfaces:
IAttributes
Simple implementation of IAttributes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) removeAttribute
(String name) Remove the attributevoid
setAttribute
(String name, Object value) Set a custom attribute.
-
Field Details
-
m_attributes
-
-
Constructor Details
-
Attributes
public Attributes()
-
-
Method Details
-
getAttribute
- Specified by:
getAttribute
in interfaceIAttributes
- Parameters:
name
- The name of the attribute to return- Returns:
- The attribute
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceIAttributes
- Returns:
- all the attributes names.
-
setAttribute
Description copied from interface:IAttributes
Set a custom attribute.- Specified by:
setAttribute
in interfaceIAttributes
- Parameters:
name
- The attribute namevalue
- The attribute value
-
removeAttribute
Description copied from interface:IAttributes
Remove the attribute- Specified by:
removeAttribute
in interfaceIAttributes
- Parameters:
name
- The attribute name- Returns:
- the attribute value if found, null otherwise
-