19 package org.turro.visual;
21 import java.util.function.Consumer;
22 import org.turro.json.JsonSearch;
36 protected Consumer<JsonVisualConstraints>
defaults() {
38 jvc.put(
"final-descriptors",
40 .
addDelete(
"descriptorValueSet[?(@.descriptorDefinition.type == 'CLOSING_DESCRIPTOR')]"));
46 if(jvc !=
null) jvc.forEach((k, c) -> {
47 if(json.check(
"$." + c.getPath())) {
48 c.getDeletes().forEach(d -> json.delete(
"$." + d));
Consumer< JsonVisualConstraints > defaults()
JsonSearch doFilter(JsonSearch json, JsonVisualConstraints jvc)
static JsonVisualFilter from(String securityGroup)
static JsonVisualConstraint from(String path)
JsonVisualConstraint addDelete(String path)
JsonVisualFilter addSecurity(String name)