1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.helger.schematron.pure.validation;
18
19 import javax.annotation.Nonnull;
20 import javax.annotation.Nullable;
21 import javax.annotation.concurrent.NotThreadSafe;
22
23 import org.w3c.dom.Node;
24
25 import com.helger.commons.state.EContinue;
26 import com.helger.schematron.pure.model.PSAssertReport;
27 import com.helger.schematron.pure.model.PSPattern;
28 import com.helger.schematron.pure.model.PSPhase;
29 import com.helger.schematron.pure.model.PSRule;
30 import com.helger.schematron.pure.model.PSSchema;
31
32
33
34
35
36
37
38 @NotThreadSafe
39 public class PSValidationHandlerDefault implements IPSValidationHandler
40 {
41 public void onStart (@Nonnull final PSSchema aSchema, @Nullable final PSPhase aActivePhase) throws SchematronValidationException
42 {
43
44 }
45
46 public void onPattern (@Nonnull final PSPattern aPattern) throws SchematronValidationException
47 {
48
49 }
50
51 public void onRule (@Nonnull final PSRule aRule, @Nonnull final String sContext) throws SchematronValidationException
52 {
53
54 }
55
56 @Nonnull
57 public EContinue onFailedAssert (@Nonnull final PSAssertReport aAssertReport,
58 @Nonnull final String sTestExpression,
59 @Nonnull final Node aRuleMatchingNode,
60 final int nNodeIndex,
61 @Nullable final Object aContext) throws SchematronValidationException
62 {
63 return EContinue.CONTINUE;
64 }
65
66 @Nonnull
67 public EContinue onSuccessfulReport (@Nonnull final PSAssertReport aAssertReport,
68 @Nonnull final String sTestExpression,
69 @Nonnull final Node aRuleMatchingNode,
70 final int nNodeIndex,
71 @Nullable final Object aContext) throws SchematronValidationException
72 {
73 return EContinue.CONTINUE;
74 }
75
76 public void onEnd (@Nonnull final PSSchema aSchema, @Nullable final PSPhase aActivePhase) throws SchematronValidationException
77 {
78
79 }
80 }