public abstract class AbstractPSBoundSchema extends Object implements IPSBoundSchema
IPSBoundSchema with all common elements. It is
independent of the used query binding.| Constructor and Description |
|---|
AbstractPSBoundSchema(IPSQueryBinding aQueryBinding,
PSSchema aOrigSchema,
String sPhase,
IPSErrorHandler aCustomErrorHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected IPSPartialValidationHandler |
createPartialValidationHandler()
Override this implementation in a derived class to modify the behavior.
|
protected void |
error(IPSElement aSourceElement,
String sMsg) |
protected void |
error(IPSElement aSourceElement,
String sMsg,
Throwable t) |
com.helger.commons.collection.impl.ICommonsList<PSPattern> |
getAllRelevantPatterns() |
protected IPSErrorHandler |
getErrorHandler() |
com.helger.xml.namespace.MapBasedNamespaceContext |
getNamespaceContext() |
PSSchema |
getOriginalSchema() |
PSPhase |
getPhase() |
String |
getPhaseID() |
IPSQueryBinding |
getQueryBinding() |
protected boolean |
isDefaultErrorHandler() |
boolean |
isPhaseSpecified() |
String |
toString() |
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.
|
protected void |
warn(IPSElement aSourceElement,
String sMsg) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetValidationContext, validatepublic AbstractPSBoundSchema(@Nonnull IPSQueryBinding aQueryBinding, @Nonnull PSSchema aOrigSchema, @Nullable String sPhase, @Nullable IPSErrorHandler aCustomErrorHandler)
@Nonnull protected IPSErrorHandler getErrorHandler()
protected boolean isDefaultErrorHandler()
@OverridingMethodsMustInvokeSuper protected void warn(@Nonnull IPSElement aSourceElement, @Nonnull String sMsg)
@OverridingMethodsMustInvokeSuper protected void error(@Nonnull IPSElement aSourceElement, @Nonnull String sMsg)
@OverridingMethodsMustInvokeSuper protected void error(@Nonnull IPSElement aSourceElement, @Nonnull String sMsg, @Nullable Throwable t)
@Nonnull public final IPSQueryBinding getQueryBinding()
getQueryBinding in interface IPSBoundSchema@Nonnull public final PSSchema getOriginalSchema()
getOriginalSchema in interface IPSBoundSchemanull.@Nonnull public final com.helger.xml.namespace.MapBasedNamespaceContext getNamespaceContext()
getNamespaceContext in interface IPSBoundSchemanull.@Nonnull public final String getPhaseID()
getPhaseID in interface IPSBoundSchemaCSchematron.PHASE_ALL.@Nullable public final PSPhase getPhase()
getPhase in interface IPSBoundSchemanull if no
specific phase is to be validated!public final boolean isPhaseSpecified()
isPhaseSpecified in interface IPSBoundSchematrue if a special phase was specified,
false if not.@Nonnull @ReturnsMutableCopy public final com.helger.commons.collection.impl.ICommonsList<PSPattern> getAllRelevantPatterns()
getAllRelevantPatterns in interface IPSBoundSchemanull.@Nonnull @OverrideOnDemand protected IPSPartialValidationHandler createPartialValidationHandler()
IPSPartialValidationHandler to
use for partial validation. May not be null.@Nonnull public com.helger.commons.state.EValidity validatePartially(@Nonnull Node aNode, @Nullable String sBaseURI) throws SchematronValidationException
IPSBoundSchemaIPSBoundSchema.validate(Node, String, IPSValidationHandler).validatePartially in interface IPSBoundSchemaaNode - 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 public SchematronOutputType validateComplete(@Nonnull Node aNode, @Nullable String sBaseURI) throws SchematronValidationException
IPSBoundSchemaIPSBoundSchema.validate(Node, String, IPSValidationHandler).validateComplete in interface IPSBoundSchemaaNode - 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.