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 AbstractPSPartialValidationHandler |
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.ext.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() |
com.helger.commons.state.EValidity |
validatePartially(Node aNode)
Special validation that breaks on the first error.
|
protected void |
warn(IPSElement aSourceElement,
String sMsg) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getValidationContext, validate, validateComplete
public 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 IPSBoundSchema
null
.@Nonnull public final com.helger.xml.namespace.MapBasedNamespaceContext getNamespaceContext()
getNamespaceContext
in interface IPSBoundSchema
null
.@Nonnull public final String getPhaseID()
getPhaseID
in interface IPSBoundSchema
CSchematron.PHASE_ALL
.@Nullable public final PSPhase getPhase()
getPhase
in interface IPSBoundSchema
null
if no
specific phase is to be validated!public final boolean isPhaseSpecified()
isPhaseSpecified
in interface IPSBoundSchema
true
if a special phase was specified,
false
if not.@Nonnull @ReturnsMutableCopy public final com.helger.commons.collection.ext.ICommonsList<PSPattern> getAllRelevantPatterns()
getAllRelevantPatterns
in interface IPSBoundSchema
null
.@Nonnull @OverrideOnDemand protected AbstractPSPartialValidationHandler createPartialValidationHandler()
AbstractPSPartialValidationHandler
to
use for partial validation. May not be null
.@Nonnull public com.helger.commons.state.EValidity validatePartially(@Nonnull Node aNode) throws SchematronValidationException
IPSBoundSchema
IPSBoundSchema.validate(Node, IPSValidationHandler)
.validatePartially
in interface IPSBoundSchema
aNode
- The XML node to be validated. May not be null
.EValidity.VALID
if the document is valid,
EValidity.INVALID
if it is invalid.SchematronValidationException
- In case a validation exception occursCopyright © 2014–2016 Philip Helger. All rights reserved.