public interface IPSBoundSchema
PSSchema
with
a specificModifier and Type | Method and Description |
---|---|
com.helger.commons.collection.ext.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,
IPSValidationHandler aHandler)
The generic validation method.
|
SchematronOutputType |
validateComplete(Node aNode)
Special validation that creates an SVRL document.
|
com.helger.commons.state.EValidity |
validatePartially(Node aNode)
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.ext.ICommonsList<PSPattern> getAllRelevantPatterns()
null
.@Nonnull String getValidationContext(@Nonnull String sRuleContext)
sRuleContext
- The original rule context. May not be null
.void validate(@Nonnull Node aNode, @Nonnull IPSValidationHandler aHandler) throws SchematronValidationException
aNode
- The node to be validated. May not 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) throws SchematronValidationException
validate(Node, IPSValidationHandler)
.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 occurs@Nonnull SchematronOutputType validateComplete(@Nonnull Node aNode) throws SchematronValidationException
validate(Node, IPSValidationHandler)
.aNode
- The XML node to be validated. May not be null
.SchematronValidationException
- In case a validation exception occursCopyright © 2014–2017 Philip Helger. All rights reserved.