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