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,
42 @Nullable final PSPhase aActivePhase) throws SchematronValidationException
43 {
44
45 }
46
47 public void onPattern (@Nonnull final PSPattern aPattern) throws SchematronValidationException
48 {
49
50 }
51
52 public void onRule (@Nonnull final PSRule aRule, @Nonnull final String sContext) throws SchematronValidationException
53 {
54
55 }
56
57 @Nonnull
58 public EContinue onFailedAssert (@Nonnull final PSAssertReport aAssertReport,
59 @Nonnull final String sTestExpression,
60 @Nonnull final Node aRuleMatchingNode,
61 final int nNodeIndex,
62 @Nullable final Object aContext) throws SchematronValidationException
63 {
64 return EContinue.CONTINUE;
65 }
66
67 @Nonnull
68 public EContinue onSuccessfulReport (@Nonnull final PSAssertReport aAssertReport,
69 @Nonnull final String sTestExpression,
70 @Nonnull final Node aRuleMatchingNode,
71 final int nNodeIndex,
72 @Nullable final Object aContext) throws SchematronValidationException
73 {
74 return EContinue.CONTINUE;
75 }
76
77 public void onEnd (@Nonnull final PSSchema aSchema,
78 @Nullable final PSPhase aActivePhase) throws SchematronValidationException
79 {
80
81 }
82 }