Skip to content

Commit

Permalink
Ctd
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Sep 16, 2024
1 parent f0df6ca commit 1fa74c7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ public static ValidationExecutorSchematron createXSLT (@Nonnull final IReadableR

/**
* Create a new instance for a single resource that uses the precompiled XSLT
* Schematron validation.
* ISO Schematron validation.
*
* @param aRes
* The resource pointing to the XSLT rules. May not be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,21 @@ public static XSDPartialContext create (@Nonnull final XPathExpression aXE)
return new XSDPartialContext (aXE, null, null);
}

/**
* Create a new XSD partial context with a min and max node constraint of 1.
*
* @param aXE
* {@link XPathExpression} that must be satisfied. May not be
* <code>null</code>.
* @return The new XSDPartialContext and never <code>null</code>.
* @since 10.0.0
*/
@Nonnull
public static XSDPartialContext createMandatory (@Nonnull final XPathExpression aXE)
{
return new XSDPartialContext (aXE, 1, 1);
}

/**
* Create a new XSD partial context with a min and max node constraint.
*
Expand Down

0 comments on commit 1fa74c7

Please sign in to comment.