Top Description Fields Constructors Methods
org.testng.internal

public Class Attributes

extends Object
implements IAttributes
Class Inheritance
All Implemented Interfaces
org.testng.IAttributes
Imports
java.util.Map, .Set, org.testng.IAttributes, org.testng.collections.Maps

Simple implementation of IAttributes.

Field Summary

Modifier and TypeField and Description
private final Map<String, Object>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getAttribute(String
The name of the attribute to return
name
)

Implements org.testng.IAttributes.getAttribute.

public Set<String>
public Object
removeAttribute(String
The attribute name
name
)

Implements org.testng.IAttributes.removeAttribute.

Remove the attribute
public void
setAttribute(String
The attribute name
name
,
Object
The attribute value
value
)

Implements org.testng.IAttributes.setAttribute.

Set a custom attribute.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_attributesback to summary
private final Map<String, Object> m_attributes

Constructor Detail

Attributesback to summary
public Attributes()

Method Detail

getAttributeback to summary
public Object getAttribute(String name)

Implements org.testng.IAttributes.getAttribute.

Parameters
name:String

Doc from org.testng.IAttributes.getAttribute.

The name of the attribute to return

Returns:Object

Doc from org.testng.IAttributes.getAttribute.

The attribute

Annotations
@Override
getAttributeNamesback to summary
public Set<String> getAttributeNames()

Implements org.testng.IAttributes.getAttributeNames.

Returns:Set<String>

Doc from org.testng.IAttributes.getAttributeNames.

all the attributes names.

Annotations
@Override
removeAttributeback to summary
public Object removeAttribute(String name)

Implements org.testng.IAttributes.removeAttribute.

Doc from org.testng.IAttributes.removeAttribute.

Remove the attribute

Parameters
name:String

The attribute name

Returns:Object

the attribute value if found, null otherwise

Annotations
@Override
setAttributeback to summary
public void setAttribute(String name, Object value)

Implements org.testng.IAttributes.setAttribute.

Doc from org.testng.IAttributes.setAttribute.

Set a custom attribute.

Parameters
name:String

The attribute name

value:Object

The attribute value

Annotations
@Override