Class PSXPathBoundAssertReport

java.lang.Object
com.helger.schematron.pure.bound.xpath.PSXPathBoundAssertReport

@Immutable public class PSXPathBoundAssertReport extends Object
This class represents a single XPath-bound assert- or report-element.
Author:
Philip Helger
  • Constructor Details

  • Method Details

    • getAssertReport

      @Nonnull public final PSAssertReport getAssertReport()
      Returns:
      The original assert/report element. Never null.
    • getTestExpression

      @Nonnull public final String getTestExpression()
      Returns:
      The source XPath expression that was compiled. Never null.
    • getBoundTestExpression

      @Nonnull public final XPathExpression getBoundTestExpression()
      Returns:
      The pre-compiled XPath expression. Never null.
    • getAllBoundContentElements

      @Nonnull @ReturnsMutableCopy public final com.helger.commons.collection.impl.ICommonsList<PSXPathBoundElement> getAllBoundContentElements()
      Returns:
      All contained bound elements. It has the same amount of elements as the source assert/report.
    • getBoundDiagnosticOfID

      @Nullable public final PSXPathBoundDiagnostic getBoundDiagnosticOfID(@Nullable String sID)
      Get the bound diagnostic matching the passed ID
      Parameters:
      sID - The ID to be resolved. May be null.
      Returns:
      null if the passed ID could not be resolved.
    • getAllBoundDiagnostics

      @Nullable public final com.helger.commons.collection.impl.ICommonsMap<String,PSXPathBoundDiagnostic> getAllBoundDiagnostics()
      Get all bound diagnostics
      Returns:
      A copy of all bound diagnostics. Never null but maybe empty.
    • toString

      public String toString()
      Overrides:
      toString in class Object