File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
src/main/java/com/networknt/schema Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -5,28 +5,29 @@ public class ValidatorState {
5
5
* Flag set when a node has matched Works in conjunction with the next flag:
6
6
* isComplexValidator, to be used for complex validators such as oneOf, for ex
7
7
*/
8
- private boolean matchedNode = true ;
8
+ private boolean matchedNode = true ;
9
9
10
10
/**
11
11
* Flag set if complex validators such as oneOf, for ex, neeed to have their
12
12
* properties validated. The PropertiesValidator is not aware generally of a
13
13
* complex validator is being validated or a simple poperty tree
14
14
*/
15
- private boolean isComplexValidator = false ;
15
+ private boolean isComplexValidator = false ;
16
16
17
17
public void setMatchedNode (boolean matchedNode ) {
18
- this .matchedNode = matchedNode ;
18
+ this .matchedNode = matchedNode ;
19
19
}
20
+
20
21
public boolean hasMatchedNode () {
21
- return matchedNode ;
22
+ return matchedNode ;
23
+ }
24
+
25
+ public boolean isComplexValidator () {
26
+ return isComplexValidator ;
22
27
}
23
28
24
- public boolean isComplexValidator ( ) {
25
- return isComplexValidator ;
26
- }
29
+ public void setComplexValidator ( boolean isComplexValidator ) {
30
+ this . isComplexValidator = isComplexValidator ;
31
+ }
27
32
28
- public void setComplexValidator (boolean isComplexValidator ) {
29
- this .isComplexValidator = isComplexValidator ;
30
- }
31
-
32
33
}
You can’t perform that action at this time.
0 commit comments