summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/query/Properties.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/query/Properties.java')
-rw-r--r--container-search/src/main/java/com/yahoo/search/query/Properties.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/Properties.java b/container-search/src/main/java/com/yahoo/search/query/Properties.java
index 12a82afc7bd..d4fc4d57cd6 100644
--- a/container-search/src/main/java/com/yahoo/search/query/Properties.java
+++ b/container-search/src/main/java/com/yahoo/search/query/Properties.java
@@ -1,8 +1,11 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.query;
+import com.yahoo.processing.request.CompoundName;
import com.yahoo.search.Query;
+import java.util.Map;
+
/**
* Object properties keyed by name which can be looked up using default values and
* with conversion to various primitive wrapper types.
@@ -50,4 +53,13 @@ public abstract class Properties extends com.yahoo.processing.request.Properties
chained().setParentQuery(query);
}
+ /**
+ * Throws IllegalInputException if the given key cannot be set to the given value.
+ * This default implementation just passes to the chained properties, if any.
+ */
+ public void requireSettable(CompoundName name, Object value, Map<String, String> context) {
+ if (chained() != null)
+ chained().requireSettable(name, value, context);
+ }
+
}