public interface IPSBoundSchema
PSSchema with
a specific| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.collection.impl.ICommonsList<PSPattern> |
getAllRelevantPatterns() |
com.helger.xml.namespace.MapBasedNamespaceContext |
getNamespaceContext() |
PSSchema |
getOriginalSchema() |
PSPhase |
getPhase() |
String |
getPhaseID() |
IPSQueryBinding |
getQueryBinding() |
String |
getValidationContext(String sRuleContext)
Get the validation context to be used.
|
boolean |
isPhaseSpecified() |
void |
validate(Node aNode,
String sBaseURI,
IPSValidationHandler aHandler)
The generic validation method.
|
SchematronOutputType |
validateComplete(Node aNode,
String sBaseURI)
Special validation that creates an SVRL document.
|
com.helger.commons.state.EValidity |
validatePartially(Node aNode,
String sBaseURI)
Special validation that breaks on the first error.
|
@Nonnull IPSQueryBinding getQueryBinding()
@Nonnull PSSchema getOriginalSchema()
null.@Nonnull com.helger.xml.namespace.MapBasedNamespaceContext getNamespaceContext()
null.@Nonnull String getPhaseID()
CSchematron.PHASE_ALL.@Nullable PSPhase getPhase()
null if no
specific phase is to be validated!boolean isPhaseSpecified()
true if a special phase was specified,
false if not.@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<PSPattern> getAllRelevantPatterns()
null.@Nonnull String getValidationContext(@Nonnull String sRuleContext)
sRuleContext - The original rule context. May not be null.void validate(@Nonnull Node aNode, @Nullable String sBaseURI, @Nonnull IPSValidationHandler aHandler) throws SchematronValidationException
aNode - The node to be validated. May not be null.sBaseURI - Base URI of the XML to be validated. May be null.aHandler - The validation handler that receives the callback informations. May
not be null.SchematronValidationException - In case a validation exception occurs@Nonnull com.helger.commons.state.EValidity validatePartially(@Nonnull Node aNode, @Nullable String sBaseURI) throws SchematronValidationException
validate(Node, String, IPSValidationHandler).aNode - The XML node to be validated. May not be null.sBaseURI - Base URI of the XML to be validated. May be null.EValidity.VALID if the document is valid,
EValidity.INVALID if it is invalid.SchematronValidationException - In case a validation exception occurs@Nonnull SchematronOutputType validateComplete(@Nonnull Node aNode, @Nullable String sBaseURI) throws SchematronValidationException
validate(Node, String, IPSValidationHandler).aNode - The XML node to be validated. May not be null.sBaseURI - Base URI of the XML to be validated. May be null.SchematronValidationException - In case a validation exception occursCopyright © 2014–2019 Philip Helger. All rights reserved.