@@ -15,27 +15,66 @@ public JsonNode getJsonRulesObject() {
15
15
}
16
16
17
17
public String getMatchIdRules () {
18
- return rulesObject .get ("MatchIdRules" ).toString ();
18
+ JsonNode jsonNode = rulesObject .get ("MatchIdRules" );
19
+ if (jsonNode != null )
20
+ return jsonNode .toString ();
21
+ return "" ;
19
22
}
20
23
21
24
public String getIdRule () {
22
- return rulesObject .get ("IdRule" ).textValue ();
25
+ JsonNode jsonNode = rulesObject .get ("IdRule" );
26
+ if (jsonNode != null )
27
+ return jsonNode .textValue ();
28
+ return "" ;
23
29
}
24
30
25
31
public String getIdentifyRules () {
26
- return rulesObject .get ("IdentifyRules" ).textValue ();
32
+ JsonNode jsonNode = rulesObject .get ("IdentifyRules" );
33
+ if (jsonNode != null )
34
+ return jsonNode .textValue ();
35
+ return "" ;
27
36
}
28
37
29
38
public String getExtractionRules () {
30
- return rulesObject .get ("ExtractionRules" ).textValue ();
39
+ JsonNode jsonNode = rulesObject .get ("ExtractionRules" );
40
+ if (jsonNode != null )
41
+ return jsonNode .textValue ();
42
+ return "" ;
31
43
}
32
44
33
45
public String getMergeRules () {
34
- return rulesObject .get ("MergeResolverRules" ).textValue ();
46
+ JsonNode jsonNode = rulesObject .get ("MergeResolverRules" );
47
+ if (jsonNode != null )
48
+ return jsonNode .textValue ();
49
+ return "" ;
50
+ }
51
+
52
+ public String getDownstreamIdentifyRules () {
53
+ JsonNode jsonNode = rulesObject .get ("DownstreamIdentifyRules" );
54
+ if (jsonNode != null )
55
+ return jsonNode .textValue ();
56
+ return "" ;
57
+ }
58
+
59
+ public String getDownstreamExtractionRules () {
60
+ JsonNode jsonNode = rulesObject .get ("DownstreamExtractionRules" );
61
+ if (jsonNode != null )
62
+ return jsonNode .textValue ();
63
+ return "" ;
64
+ }
65
+
66
+ public String getDownstreamMergeRules () {
67
+ JsonNode jsonNode = rulesObject .get ("DownstreamMergeRules" );
68
+ if (jsonNode != null )
69
+ return jsonNode .textValue ();
70
+ return "" ;
35
71
}
36
72
37
73
public String fetchProcessRules () {
38
- return rulesObject .get ("ProcessRules" ).textValue ();
74
+ JsonNode jsonNode = rulesObject .get ("ProcessRules" );
75
+ if (jsonNode != null )
76
+ return jsonNode .textValue ();
77
+ return "" ;
39
78
}
40
79
41
80
public boolean equals (Object other ) {
0 commit comments