test_class.declarator: testOutDir = new File("target/test-out/WebsterChecklistTargetTest")
test_class.modifier: final
test_class.original_string: final File testOutDir = new File("target/test-out/WebsterChecklistTargetTest");
test_class.type: File
test_class.var_name: testOutDir
test_class.file: webster/src/test/java/net/adamcin/oakpal/webster/targets/WebsterChecklistTargetTest.java
test_class.identifier: WebsterChecklistTargetTest
test_case.body: @Test
      public void testSelectorsFromConfigCompactForm() {
          List<WebsterChecklistTarget.Selector> pathSelector =
                  selectorsFromConfigCompactForm(key("selectPaths", arr("/foo1", "/foo2")).get());
          assertEquals("expect type", PATH, pathSelector.get(0).getType());
          assertEquals("expect args", Arrays.asList("/foo1", "/foo2"), pathSelector.get(0).getArgs());
  
          List<WebsterChecklistTarget.Selector> ntSelector =
                  selectorsFromConfigCompactForm(key("selectNodeTypes", arr("foo:nt1", "foo:mix1")).get());
          assertEquals("expect type", NODETYPE, ntSelector.get(0).getType());
          assertEquals("expect args", Arrays.asList("foo:nt1", "foo:mix1"), ntSelector.get(0).getArgs());
  
          List<WebsterChecklistTarget.Selector> querySelector =
                  selectorsFromConfigCompactForm(key("selectQuery", "select * from [nt:base]").get());
          assertEquals("expect type", QUERY, querySelector.get(0).getType());
          assertEquals("expect args", Collections.singletonList("select * from [nt:base]"),
                  querySelector.get(0).getArgs());
      }
test_case.class_method_signature: WebsterChecklistTargetTest.testSelectorsFromConfigCompactForm()
test_case.full_signature: @Test public void testSelectorsFromConfigCompactForm()
test_case.identifier: testSelectorsFromConfigCompactForm
test_case.invocations: selectorsFromConfigCompactForm get key arr assertEquals getType get assertEquals asList getArgs get selectorsFromConfigCompactForm get key arr assertEquals getType get assertEquals asList getArgs get selectorsFromConfigCompactForm get key assertEquals getType get assertEquals singletonList getArgs get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSelectorsFromConfigCompactForm()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(WebsterChecklistTarget.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(WebsterChecklistTarget.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: KEY_TYPE = "type"
focal_class.modifier: static final
focal_class.original_string: static final String KEY_TYPE = "type";
focal_class.type: String
focal_class.var_name: KEY_TYPE
focal_class.declarator: KEY_ARGS = "args"
focal_class.modifier: static final
focal_class.original_string: static final String KEY_ARGS = "args";
focal_class.type: String
focal_class.var_name: KEY_ARGS
focal_class.declarator: COMPACT_KEY_BY_NODETYPES = "selectNodeTypes"
focal_class.modifier: static final
focal_class.original_string: static final String COMPACT_KEY_BY_NODETYPES = "selectNodeTypes";
focal_class.type: String
focal_class.var_name: COMPACT_KEY_BY_NODETYPES
focal_class.declarator: COMPACT_KEY_BY_PATHS = "selectPaths"
focal_class.modifier: static final
focal_class.original_string: static final String COMPACT_KEY_BY_PATHS = "selectPaths";
focal_class.type: String
focal_class.var_name: COMPACT_KEY_BY_PATHS
focal_class.declarator: COMPACT_KEY_BY_QUERY = "selectQuery"
focal_class.modifier: static final
focal_class.original_string: static final String COMPACT_KEY_BY_QUERY = "selectQuery";
focal_class.type: String
focal_class.var_name: COMPACT_KEY_BY_QUERY
focal_class.declarator: KEY_SELECTORS = "selectors"
focal_class.modifier: static final
focal_class.original_string: static final String KEY_SELECTORS = "selectors";
focal_class.type: String
focal_class.var_name: KEY_SELECTORS
focal_class.declarator: KEY_SCOPE_PATHS = "scopePaths"
focal_class.modifier: static final
focal_class.original_string: static final String KEY_SCOPE_PATHS = "scopePaths";
focal_class.type: String
focal_class.var_name: KEY_SCOPE_PATHS
focal_class.declarator: KEY_NODE_TYPE_FILTERS = "nodeTypeFilters"
focal_class.modifier: static final
focal_class.original_string: static final String KEY_NODE_TYPE_FILTERS = "nodeTypeFilters";
focal_class.type: String
focal_class.var_name: KEY_NODE_TYPE_FILTERS
focal_class.declarator: KEY_JCR_NAMESPACES = "jcrNamespaces"
focal_class.modifier: static final
focal_class.original_string: static final String KEY_JCR_NAMESPACES = "jcrNamespaces";
focal_class.type: String
focal_class.var_name: KEY_JCR_NAMESPACES
focal_class.declarator: KEY_UPDATE_POLICY = "updatePolicy"
focal_class.modifier: static final
focal_class.original_string: static final String KEY_UPDATE_POLICY = "updatePolicy";
focal_class.type: String
focal_class.var_name: KEY_UPDATE_POLICY
focal_class.declarator: KEY_EXPORT_NODETYPES = "exportNodeTypes"
focal_class.modifier: static final
focal_class.original_string: static final String KEY_EXPORT_NODETYPES = "exportNodeTypes";
focal_class.type: String
focal_class.var_name: KEY_EXPORT_NODETYPES
focal_class.declarator: checklist
focal_class.modifier: private final
focal_class.original_string: private final File checklist;
focal_class.type: File
focal_class.var_name: checklist
focal_class.declarator: exporter
focal_class.modifier: private final
focal_class.original_string: private final ChecklistExporter exporter;
focal_class.type: ChecklistExporter
focal_class.var_name: exporter
focal_class.declarator: updatePolicy
focal_class.modifier: private final
focal_class.original_string: private final ChecklistExporter.ForcedRootUpdatePolicy updatePolicy;
focal_class.type: ChecklistExporter.ForcedRootUpdatePolicy
focal_class.var_name: updatePolicy
focal_class.file: webster/src/main/java/net/adamcin/oakpal/webster/targets/WebsterChecklistTarget.java
focal_class.identifier: WebsterChecklistTarget
focal_class.interfaces: implements WebsterTarget
focal_class.class_method_signature: WebsterChecklistTarget.selectorFromJson(final JsonObject json)
focal_class.full_signature: static Selector selectorFromJson(final JsonObject json)
focal_class.identifier: selectorFromJson
focal_class.modifiers: static
focal_class.parameters: (final JsonObject json)
focal_class.return: Selector
focal_class.signature: Selector selectorFromJson(final JsonObject json)
focal_class.class_method_signature: WebsterChecklistTarget.selectorsFromConfigCompactForm(final JsonObject json)
focal_class.full_signature: static List<Selector> selectorsFromConfigCompactForm(final JsonObject json)
focal_class.identifier: selectorsFromConfigCompactForm
focal_class.modifiers: static
focal_class.parameters: (final JsonObject json)
focal_class.return: List<Selector>
focal_class.signature: List<Selector> selectorsFromConfigCompactForm(final JsonObject json)
focal_class.class_method_signature: WebsterChecklistTarget.WebsterChecklistTarget(final File checklist,
                                     final ChecklistExporter exporter,
                                     final ChecklistExporter.ForcedRootUpdatePolicy updatePolicy)
focal_class.full_signature: private  WebsterChecklistTarget(final File checklist,
                                     final ChecklistExporter exporter,
                                     final ChecklistExporter.ForcedRootUpdatePolicy updatePolicy)
focal_class.identifier: WebsterChecklistTarget
focal_class.modifiers: private
focal_class.parameters: (final File checklist,
                                     final ChecklistExporter exporter,
                                     final ChecklistExporter.ForcedRootUpdatePolicy updatePolicy)
focal_class.signature:  WebsterChecklistTarget(final File checklist,
                                     final ChecklistExporter exporter,
                                     final ChecklistExporter.ForcedRootUpdatePolicy updatePolicy)
focal_class.class_method_signature: WebsterChecklistTarget.perform(final Session session)
focal_class.full_signature: @Override public void perform(final Session session)
focal_class.identifier: perform
focal_class.modifiers: @Override public
focal_class.parameters: (final Session session)
focal_class.return: void
focal_class.signature: void perform(final Session session)
focal_class.class_method_signature: WebsterChecklistTarget.fromJson(final File target, final JsonObject config)
focal_class.full_signature: static WebsterChecklistTarget fromJson(final File target, final JsonObject config)
focal_class.identifier: fromJson
focal_class.modifiers: static
focal_class.parameters: (final File target, final JsonObject config)
focal_class.return: WebsterChecklistTarget
focal_class.signature: WebsterChecklistTarget fromJson(final File target, final JsonObject config)
focal_method.body: static List<Selector> selectorsFromConfigCompactForm(final JsonObject json) {
          final List<Selector> selectors = new ArrayList<>();
          if (json.containsKey(COMPACT_KEY_BY_NODETYPES)) {
              final List<String> args = JavaxJson.mapArrayOfStrings(json.getJsonArray(COMPACT_KEY_BY_NODETYPES));
              selectors.add(new Selector(ChecklistExporter.SelectorType.NODETYPE, args.toArray(new String[0])));
          }
          if (json.containsKey(COMPACT_KEY_BY_PATHS)) {
              final List<String> args = JavaxJson.mapArrayOfStrings(json.getJsonArray(COMPACT_KEY_BY_PATHS));
              selectors.add(new Selector(ChecklistExporter.SelectorType.PATH, args.toArray(new String[0])));
          }
          if (json.containsKey(COMPACT_KEY_BY_QUERY)) {
              selectors.add(new Selector(ChecklistExporter.SelectorType.QUERY,
                      new String[]{json.getString(COMPACT_KEY_BY_QUERY)}));
          }
          return selectors;
      }
focal_method.class_method_signature: WebsterChecklistTarget.selectorsFromConfigCompactForm(final JsonObject json)
focal_method.full_signature: static List<Selector> selectorsFromConfigCompactForm(final JsonObject json)
focal_method.identifier: selectorsFromConfigCompactForm
focal_method.invocations: containsKey mapArrayOfStrings getJsonArray add toArray containsKey mapArrayOfStrings getJsonArray add toArray containsKey add getString
focal_method.modifiers: static
focal_method.parameters: (final JsonObject json)
focal_method.return: List<Selector>
focal_method.signature: List<Selector> selectorsFromConfigCompactForm(final JsonObject json)