You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e2755ca
Browse filesBrowse the repository at this point in the historyBrowse files
privatestaticfinalString_CONTEXT_MISSING_MESSAGE = "Context must not be missing";
52
53
53
54
/**
54
55
* Construct the decision engine with the passed data provider
55
56
* @param provider a DataProvider
57
+
* @throws NullPointerException if provider is null
56
58
*/
57
59
publicDecisionEngine(DataProviderprovider) {
58
-
setProvider(provider);
60
+
_provider = Objects.requireNonNull(provider, "Provider must not be null");
59
61
}
60
62
61
63
/**
@@ -218,14 +220,6 @@ public DataProvider getProvider() {
218
220
return_provider;
219
221
}
220
222
221
-
/**
222
-
* Sets the provider and initiaizes all definitions and tables
223
-
* @param provider a DataProvider
224
-
*/
225
-
publicvoidsetProvider(DataProviderprovider) {
226
-
_provider = provider;
227
-
}
228
-
229
223
/**
230
224
* Given a mapping and a context, check the inclusion/exclusion tables to see if mapping should be processed
231
225
* @param mapping a Mapping
@@ -646,6 +640,10 @@ public Result process(String schemaId, Map<String, String> context) {
646
640
647
641
/**
648
642
* Using the supplied context, process a schema. The results will be added to the context.
643
+
* <p>
644
+
* Input-mapping destination keys on a table path are temporary aliases scoped to that path. They are added before the path is processed and removed afterward. An input-mapping
645
+
* destination must therefore not be used to preserve a pre-existing context value; any previous value with the same key is overwritten and is not restored.
646
+
* </p>
649
647
* @param schema a schema
650
648
* @param context a Map containing the context
651
649
* @return a Result
@@ -666,8 +664,10 @@ public Result process(Schema schema, Map<String, String> context) {
666
664
Stringvalue = context.get(input.getKey());
667
665
668
666
// if value not supplied, use the default or defaultTable and set it back into the context; if not supplied and no default, set the input the blank
0 commit comments