package org.testng;

import java.util.Set;

A trait that is used by all interfaces that lets the user add or remove their own attributes.
/** A trait that is used by all interfaces that lets the user add or remove their own attributes. */
public interface IAttributes {
Params:
  • name – The name of the attribute to return
Returns:The attribute
/** * @param name The name of the attribute to return * @return The attribute */
Object getAttribute(String name);
Set a custom attribute.
Params:
  • name – The attribute name
  • value – The attribute value
/** * Set a custom attribute. * * @param name The attribute name * @param value The attribute value */
void setAttribute(String name, Object value);
Returns:all the attributes names.
/** @return all the attributes names. */
Set<String> getAttributeNames();
Remove the attribute
Params:
  • name – The attribute name
Returns:the attribute value if found, null otherwise
/** * Remove the attribute * * @param name The attribute name * @return the attribute value if found, null otherwise */
Object removeAttribute(String name); }