Class PSXPathBoundAssertReport
java.lang.Object
com.helger.schematron.pure.bound.xpath.PSXPathBoundAssertReport
This class represents a single XPath-bound assert- or report-element.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionPSXPathBoundAssertReport(PSAssertReport aAssertReport, String sTestExpression, XPathExpression aBoundTestExpression, com.helger.commons.collection.impl.ICommonsList<PSXPathBoundElement> aBoundContent, com.helger.commons.collection.impl.ICommonsMap<String, PSXPathBoundDiagnostic> aBoundDiagnostics) -
Method Summary
Modifier and TypeMethodDescriptionfinal com.helger.commons.collection.impl.ICommonsList<PSXPathBoundElement>final com.helger.commons.collection.impl.ICommonsMap<String,PSXPathBoundDiagnostic> Get all bound diagnosticsfinal PSAssertReportfinal PSXPathBoundDiagnosticGet the bound diagnostic matching the passed IDfinal XPathExpressionfinal StringtoString()
-
Constructor Details
-
PSXPathBoundAssertReport
public PSXPathBoundAssertReport(@Nonnull PSAssertReport aAssertReport, @Nonnull String sTestExpression, @Nonnull XPathExpression aBoundTestExpression, @Nonnull com.helger.commons.collection.impl.ICommonsList<PSXPathBoundElement> aBoundContent, @Nonnull com.helger.commons.collection.impl.ICommonsMap<String, PSXPathBoundDiagnostic> aBoundDiagnostics)
-
-
Method Details
-
getAssertReport
- Returns:
- The original assert/report element. Never
null.
-
getTestExpression
- Returns:
- The source XPath expression that was compiled. Never
null.
-
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
Get the bound diagnostic matching the passed ID- Parameters:
sID- The ID to be resolved. May benull.- Returns:
nullif 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
nullbut maybe empty.
-
toString
-