Class Namespace

java.lang.Object
org.opentest4j.reporting.schema.Namespace

public class Namespace extends Object
An XML namespace identified by a URI.
  • Field Details

    • XML_SCHEMA_INSTANCE

      public static final Namespace XML_SCHEMA_INSTANCE
      W3C XML Schema Instance namespace ("http://www.w3.org/2001/XMLSchema-instance").
    • REPORTING_CORE

      public static final Namespace REPORTING_CORE
      Open Test Reporting core namespace
    • REPORTING_EVENTS

      public static final Namespace REPORTING_EVENTS
      Open Test Reporting events namespace
    • REPORTING_JAVA

      public static final Namespace REPORTING_JAVA
      Open Test Reporting Java namespace
    • REPORTING_HIERARCHY

      public static final Namespace REPORTING_HIERARCHY
      Open Test Reporting hierarchical namespace
  • Method Details

    • of

      public static Namespace of(String uri)
      Create the namespace with the supplied URI.
      Parameters:
      uri - the namespace URI
      Returns:
      namespace with the supplied URI
    • getUri

      public String getUri()
      Returns:
      the URI that identifies this namespace
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object