Class Label

java.lang.Object
io.qameta.allure.model.Label
All Implemented Interfaces:
Serializable

public class Label extends Object implements Serializable
The model object that could be used to pass additional metadata to test results. Note that labels with empty (blank) name will be omitted during report generation.
Since:
2.0
See Also:
  • Constructor Details

    • Label

      public Label()
  • Method Details

    • getName

      public String getName()
      Gets name.
      Returns:
      the name
    • setName

      public Label setName(String value)
      Sets name.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • getValue

      public String getValue()
      Gets value.
      Returns:
      the value
    • setValue

      public Label setValue(String value)
      Sets value.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object