@Immutable public final class SchematronValidator extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.helger.commons.io.resource.ClassPathResource |
SCHEMATRON_RNC
The readable resource with the RelaxNG compact Schematron rules
|
static String |
SCHEMATRON_RNC_PATH
Path to the Schematron RelaxNG Compact file within the class path
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValidSchematron(com.helger.xml.microdom.IMicroNode aNode)
Check if the passed micro node is a valid schematron instance.
|
static boolean |
isValidSchematron(com.helger.commons.io.resource.IReadableResource aRes)
Check if the passed resource is a valid schematron instance.
|
static boolean |
isValidSchematron(Node aNode)
Check if the passed DOM node is a valid schematron instance.
|
static boolean |
isValidSchematron(Source aSource)
Check if the passed source is a valid schematron instance.
|
public static final String SCHEMATRON_RNC_PATH
public static final com.helger.commons.io.resource.ClassPathResource SCHEMATRON_RNC
public static boolean isValidSchematron(@Nullable com.helger.xml.microdom.IMicroNode aNode)
aNode - The micro node to check. May be null.true if the schematron is valid, false
otherwise.public static boolean isValidSchematron(@Nullable Node aNode)
aNode - The DOM node to check. May be null.true if the schematron is valid, false
otherwise.public static boolean isValidSchematron(@Nullable com.helger.commons.io.resource.IReadableResource aRes)
aRes - The resource to check. May be null.true if the schematron is valid, false
otherwise.Copyright © 2014–2020 Philip Helger. All rights reserved.