Package org.testng.internal
Class Attributes
- java.lang.Object
-
- org.testng.internal.Attributes
-
- All Implemented Interfaces:
IAttributes
public class Attributes extends Object implements IAttributes
Simple implementation of IAttributes.
-
-
Constructor Summary
Constructors Constructor Description Attributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(String name)Set<String>getAttributeNames()ObjectremoveAttribute(String name)Remove the attributevoidsetAttribute(String name, Object value)Set a custom attribute.
-
-
-
Method Detail
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttributein interfaceIAttributes- Parameters:
name- The name of the attribute to return
-
getAttributeNames
public Set<String> getAttributeNames()
- Specified by:
getAttributeNamesin interfaceIAttributes- Returns:
- all the attributes names.
-
setAttribute
public void setAttribute(String name, Object value)
Description copied from interface:IAttributesSet a custom attribute.- Specified by:
setAttributein interfaceIAttributes
-
removeAttribute
public Object removeAttribute(String name)
Description copied from interface:IAttributesRemove the attribute- Specified by:
removeAttributein interfaceIAttributes- Returns:
- the attribute value if found, null otherwise
-
-