Class Attributes

java.lang.Object
org.testng.internal.Attributes
All Implemented Interfaces:
IAttributes

public class Attributes extends Object implements IAttributes
Simple implementation of IAttributes.
  • Field Details

  • Constructor Details

    • Attributes

      public Attributes()
  • Method Details

    • getAttribute

      public Object getAttribute(String name)
      Specified by:
      getAttribute in interface IAttributes
      Parameters:
      name - The name of the attribute to return
      Returns:
      The attribute
    • getAttributeNames

      public Set<String> getAttributeNames()
      Specified by:
      getAttributeNames in interface IAttributes
      Returns:
      all the attributes names.
    • setAttribute

      public void setAttribute(String name, Object value)
      Description copied from interface: IAttributes
      Set a custom attribute.
      Specified by:
      setAttribute in interface IAttributes
      Parameters:
      name - The attribute name
      value - The attribute value
    • removeAttribute

      public Object removeAttribute(String name)
      Description copied from interface: IAttributes
      Remove the attribute
      Specified by:
      removeAttribute in interface IAttributes
      Parameters:
      name - The attribute name
      Returns:
      the attribute value if found, null otherwise