querqy.rewrite.commonrules.model.InstructionsProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of querqy-core Show documentation
Show all versions of querqy-core Show documentation
Querqy library for query rewriting: Querqy Core
package querqy.rewrite.commonrules.model;
import com.jayway.jsonpath.Configuration;
import com.jayway.jsonpath.DocumentContext;
import com.jayway.jsonpath.JsonPath;
import java.util.List;
import java.util.Map;
import java.util.Optional;
public class InstructionsProperties {
private final Map propertyMap;
private final DocumentContext documentContext;
public InstructionsProperties(final Map propertyMap, final Configuration jsonPathConfig) {
this.propertyMap = propertyMap;
documentContext = JsonPath.using(jsonPathConfig).parse(propertyMap);
}
public InstructionsProperties(final Map propertyMap) {
this(propertyMap, Configuration.defaultConfiguration());
}
public Optional