Class STNameCodeTuple

java.lang.Object
io.nosqlbench.nb.spectest.testmodels.STNameCodeTuple

public final class STNameCodeTuple extends Object
A STNameCodeTuple is a set of metadata that describes a test target from a test specification file, in terms of Node sequences and context. It contains naming and locating information as well as the document nodes containing the target element.
  • Field Details

  • Constructor Details

    • STNameCodeTuple

      public STNameCodeTuple(Supplier<CharSequence> desc, com.vladsch.flexmark.util.ast.Node infoNode, com.vladsch.flexmark.util.ast.Node dataNode, Path path)
  • Method Details

    • getDesc

      public String getDesc()
    • getPath

      public Path getPath()
    • getLine

      public int getLine()
    • getRefNode

      public com.vladsch.flexmark.util.ast.Node getRefNode()
    • getLocationRef

      public String getLocationRef()
      Provide the logical path of the file being examined in this test set. If the system properties indicate that the test is being run from within intellij, the path will be relativized from the next module level up to allow for hot linking directly to files.
      Returns:
      A useful relative path to the file being tested
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object