test_class.declarator: manifestUrl
test_class.modifier: private
test_class.original_string: private URL manifestUrl;
test_class.type: URL
test_class.var_name: manifestUrl
test_class.declarator: cndAUrl
test_class.modifier: private
test_class.original_string: private URL cndAUrl;
test_class.type: URL
test_class.var_name: cndAUrl
test_class.declarator: cndBUrl
test_class.modifier: private
test_class.original_string: private URL cndBUrl;
test_class.type: URL
test_class.var_name: cndBUrl
test_class.file: core/src/test/java/net/adamcin/oakpal/core/ChecklistTest.java
test_class.identifier: ChecklistTest
test_case.body: @Test
      public void testBuilderWithNodetypes() {
          final List<JcrNs> jcrNamespaces = Arrays.asList(
                  JcrNs.create("foo", "http://foo.com"),
                  JcrNs.create("bar", "http://bar.com"));
          Checklist.Builder builderWithNodetypes = new Checklist.Builder("test");
          final NamespaceMapping mapping = JsonCnd.toNamespaceMapping(jcrNamespaces);
          final List<QNodeTypeDefinition> nodetypes = JsonCnd.getQTypesFromJson(obj()
                  .key("foo:primaryType").val(key("extends", arr().val("nt:base")))
                  .key("foo:mixinType").val(key("@", arr().val("mixin")))
                  .key("bar:primaryType").val(key("extends", arr().val("nt:base")))
                  .key("bar:mixinType").val(key("@", arr().val("mixin"))).get(), mapping);
          builderWithNodetypes.withJcrNodetypes(nodetypes);
          assertEquals("jcr nodetypes pass thru",
                  nodetypes, builderWithNodetypes.build().getJcrNodetypes());
      }
test_case.class_method_signature: ChecklistTest.testBuilderWithNodetypes()
test_case.full_signature: @Test public void testBuilderWithNodetypes()
test_case.identifier: testBuilderWithNodetypes
test_case.invocations: asList create create toNamespaceMapping getQTypesFromJson get val key val key val key val key obj key val arr key val arr key val arr key val arr withJcrNodetypes assertEquals getJcrNodetypes build
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBuilderWithNodetypes()
focal_class.declarator: KEYS = new JsonKeys() {
          private final List<String> allKeys = Arrays.asList(
                  name(),
                  checks(),
                  repoInits(),
                  forcedRoots(),
                  cndNames(),
                  cndUrls(),
                  jcrNodetypes(),
                  jcrPrivileges(),
                  jcrNamespaces());
  
          @Override
          public String name() {
              return "name";
          }
  
          @Override
          public String cndUrls() {
              return "cndUrls";
          }
  
          @Override
          public String cndNames() {
              return "cndNames";
          }
  
          @Override
          public String jcrNodetypes() {
              return "jcrNodetypes";
          }
  
          @Override
          public String jcrNamespaces() {
              return "jcrNamespaces";
          }
  
          @Override
          public String jcrPrivileges() {
              return "jcrPrivileges";
          }
  
          @Override
          public String forcedRoots() {
              return "forcedRoots";
          }
  
          @Override
          public String repoInits() {
              return "repoInits";
          }
  
          @Override
          public String checks() {
              return "checks";
          }
  
          @Override
          public List<String> orderedKeys() {
              return allKeys;
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final JsonKeys KEYS = new JsonKeys() {
          private final List<String> allKeys = Arrays.asList(
                  name(),
                  checks(),
                  repoInits(),
                  forcedRoots(),
                  cndNames(),
                  cndUrls(),
                  jcrNodetypes(),
                  jcrPrivileges(),
                  jcrNamespaces());
  
          @Override
          public String name() {
              return "name";
          }
  
          @Override
          public String cndUrls() {
              return "cndUrls";
          }
  
          @Override
          public String cndNames() {
              return "cndNames";
          }
  
          @Override
          public String jcrNodetypes() {
              return "jcrNodetypes";
          }
  
          @Override
          public String jcrNamespaces() {
              return "jcrNamespaces";
          }
  
          @Override
          public String jcrPrivileges() {
              return "jcrPrivileges";
          }
  
          @Override
          public String forcedRoots() {
              return "forcedRoots";
          }
  
          @Override
          public String repoInits() {
              return "repoInits";
          }
  
          @Override
          public String checks() {
              return "checks";
          }
  
          @Override
          public List<String> orderedKeys() {
              return allKeys;
          }
      };
focal_class.type: JsonKeys
focal_class.var_name: KEYS
focal_class.declarator: LOGGER = LoggerFactory.getLogger(Checklist.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(Checklist.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: checklistKeyComparator = (s1, s2) -> {
          final List<String> keyOrder = keys().orderedKeys();
          if (keyOrder.contains(s1) && keyOrder.contains(s2)) {
              return Integer.compare(keyOrder.indexOf(s1), keyOrder.indexOf(s2));
          } else if (keyOrder.contains(s1)) {
              return -1;
          } else if (keyOrder.contains(s2)) {
              return 1;
          } else {
              return s1.compareTo(s2);
          }
      }
focal_class.modifier: static final
focal_class.original_string: static final Comparator<String> checklistKeyComparator = (s1, s2) -> {
          final List<String> keyOrder = keys().orderedKeys();
          if (keyOrder.contains(s1) && keyOrder.contains(s2)) {
              return Integer.compare(keyOrder.indexOf(s1), keyOrder.indexOf(s2));
          } else if (keyOrder.contains(s1)) {
              return -1;
          } else if (keyOrder.contains(s2)) {
              return 1;
          } else {
              return s1.compareTo(s2);
          }
      };
focal_class.type: Comparator<String>
focal_class.var_name: checklistKeyComparator
focal_class.declarator: originalJson
focal_class.modifier: private final
focal_class.original_string: private final JsonObject originalJson;
focal_class.type: JsonObject
focal_class.var_name: originalJson
focal_class.declarator: moduleName
focal_class.modifier: private final
focal_class.original_string: private final String moduleName;
focal_class.type: String
focal_class.var_name: moduleName
focal_class.declarator: name
focal_class.modifier: private final
focal_class.original_string: private final String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: cndUrls
focal_class.modifier: private final
focal_class.original_string: private final List<URL> cndUrls;
focal_class.type: List<URL>
focal_class.var_name: cndUrls
focal_class.declarator: jcrNamespaces
focal_class.modifier: private final
focal_class.original_string: private final List<JcrNs> jcrNamespaces;
focal_class.type: List<JcrNs>
focal_class.var_name: jcrNamespaces
focal_class.declarator: jcrNodetypes
focal_class.modifier: private final
focal_class.original_string: private final List<QNodeTypeDefinition> jcrNodetypes;
focal_class.type: List<QNodeTypeDefinition>
focal_class.var_name: jcrNodetypes
focal_class.declarator: jcrPrivileges
focal_class.modifier: private final
focal_class.original_string: private final List<PrivilegeDefinition> jcrPrivileges;
focal_class.type: List<PrivilegeDefinition>
focal_class.var_name: jcrPrivileges
focal_class.declarator: forcedRoots
focal_class.modifier: private final
focal_class.original_string: private final List<ForcedRoot> forcedRoots;
focal_class.type: List<ForcedRoot>
focal_class.var_name: forcedRoots
focal_class.declarator: checks
focal_class.modifier: private final
focal_class.original_string: private final List<CheckSpec.ImmutableSpec> checks;
focal_class.type: List<CheckSpec.ImmutableSpec>
focal_class.var_name: checks
focal_class.declarator: repoInits
focal_class.modifier: private final
focal_class.original_string: private final List<String> repoInits;
focal_class.type: List<String>
focal_class.var_name: repoInits
focal_class.file: core/src/main/java/net/adamcin/oakpal/core/Checklist.java
focal_class.identifier: Checklist
focal_class.interfaces: implements JsonObjectConvertible
focal_class.class_method_signature: Checklist.keys()
focal_class.full_signature: @NotNull public static Checklist.JsonKeys keys()
focal_class.identifier: keys
focal_class.modifiers: @NotNull public static
focal_class.parameters: ()
focal_class.return: Checklist.JsonKeys
focal_class.signature: Checklist.JsonKeys keys()
focal_class.class_method_signature: Checklist.comparingJsonKeys(final @NotNull Function<T, String> jsonKeyExtractor)
focal_class.full_signature: public static Comparator<T> comparingJsonKeys(final @NotNull Function<T, String> jsonKeyExtractor)
focal_class.identifier: comparingJsonKeys
focal_class.modifiers: public static
focal_class.parameters: (final @NotNull Function<T, String> jsonKeyExtractor)
focal_class.return: Comparator<T>
focal_class.signature: Comparator<T> comparingJsonKeys(final @NotNull Function<T, String> jsonKeyExtractor)
focal_class.class_method_signature: Checklist.Checklist(final @Nullable JsonObject originalJson,
                final @Nullable String moduleName,
                final @Nullable String name,
                final @NotNull List<URL> cndUrls,
                final @NotNull List<JcrNs> jcrNamespaces,
                final @NotNull List<QNodeTypeDefinition> jcrNodetypes,
                final @NotNull List<PrivilegeDefinition> jcrPrivileges,
                final @NotNull List<ForcedRoot> forcedRoots,
                final @NotNull List<CheckSpec.ImmutableSpec> checks,
                final @NotNull List<String> repoInits)
focal_class.full_signature:   Checklist(final @Nullable JsonObject originalJson,
                final @Nullable String moduleName,
                final @Nullable String name,
                final @NotNull List<URL> cndUrls,
                final @NotNull List<JcrNs> jcrNamespaces,
                final @NotNull List<QNodeTypeDefinition> jcrNodetypes,
                final @NotNull List<PrivilegeDefinition> jcrPrivileges,
                final @NotNull List<ForcedRoot> forcedRoots,
                final @NotNull List<CheckSpec.ImmutableSpec> checks,
                final @NotNull List<String> repoInits)
focal_class.identifier: Checklist
focal_class.parameters: (final @Nullable JsonObject originalJson,
                final @Nullable String moduleName,
                final @Nullable String name,
                final @NotNull List<URL> cndUrls,
                final @NotNull List<JcrNs> jcrNamespaces,
                final @NotNull List<QNodeTypeDefinition> jcrNodetypes,
                final @NotNull List<PrivilegeDefinition> jcrPrivileges,
                final @NotNull List<ForcedRoot> forcedRoots,
                final @NotNull List<CheckSpec.ImmutableSpec> checks,
                final @NotNull List<String> repoInits)
focal_class.signature:  Checklist(final @Nullable JsonObject originalJson,
                final @Nullable String moduleName,
                final @Nullable String name,
                final @NotNull List<URL> cndUrls,
                final @NotNull List<JcrNs> jcrNamespaces,
                final @NotNull List<QNodeTypeDefinition> jcrNodetypes,
                final @NotNull List<PrivilegeDefinition> jcrPrivileges,
                final @NotNull List<ForcedRoot> forcedRoots,
                final @NotNull List<CheckSpec.ImmutableSpec> checks,
                final @NotNull List<String> repoInits)
focal_class.class_method_signature: Checklist.getModuleName()
focal_class.full_signature: public String getModuleName()
focal_class.identifier: getModuleName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getModuleName()
focal_class.class_method_signature: Checklist.getName()
focal_class.full_signature: public String getName()
focal_class.identifier: getName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: Checklist.getCndUrls()
focal_class.full_signature: public List<URL> getCndUrls()
focal_class.identifier: getCndUrls
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<URL>
focal_class.signature: List<URL> getCndUrls()
focal_class.class_method_signature: Checklist.getJcrNodetypes()
focal_class.full_signature: public List<QNodeTypeDefinition> getJcrNodetypes()
focal_class.identifier: getJcrNodetypes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<QNodeTypeDefinition>
focal_class.signature: List<QNodeTypeDefinition> getJcrNodetypes()
focal_class.class_method_signature: Checklist.getJcrNamespaces()
focal_class.full_signature: public List<JcrNs> getJcrNamespaces()
focal_class.identifier: getJcrNamespaces
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<JcrNs>
focal_class.signature: List<JcrNs> getJcrNamespaces()
focal_class.class_method_signature: Checklist.getJcrPrivilegeNames()
focal_class.full_signature: public List<String> getJcrPrivilegeNames()
focal_class.identifier: getJcrPrivilegeNames
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getJcrPrivilegeNames()
focal_class.class_method_signature: Checklist.getJcrPrivileges()
focal_class.full_signature: public List<PrivilegeDefinition> getJcrPrivileges()
focal_class.identifier: getJcrPrivileges
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<PrivilegeDefinition>
focal_class.signature: List<PrivilegeDefinition> getJcrPrivileges()
focal_class.class_method_signature: Checklist.getForcedRoots()
focal_class.full_signature: public List<ForcedRoot> getForcedRoots()
focal_class.identifier: getForcedRoots
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<ForcedRoot>
focal_class.signature: List<ForcedRoot> getForcedRoots()
focal_class.class_method_signature: Checklist.getChecks()
focal_class.full_signature: public List<CheckSpec> getChecks()
focal_class.identifier: getChecks
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<CheckSpec>
focal_class.signature: List<CheckSpec> getChecks()
focal_class.class_method_signature: Checklist.getRepoInits()
focal_class.full_signature: public List<String> getRepoInits()
focal_class.identifier: getRepoInits
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getRepoInits()
focal_class.class_method_signature: Checklist.asInitStage()
focal_class.full_signature: public InitStage asInitStage()
focal_class.identifier: asInitStage
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: InitStage
focal_class.signature: InitStage asInitStage()
focal_class.class_method_signature: Checklist.insertPrefix(final @NotNull CheckSpec checkSpec, final String prefix)
focal_class.full_signature: private CheckSpec insertPrefix(final @NotNull CheckSpec checkSpec, final String prefix)
focal_class.identifier: insertPrefix
focal_class.modifiers: private
focal_class.parameters: (final @NotNull CheckSpec checkSpec, final String prefix)
focal_class.return: CheckSpec
focal_class.signature: CheckSpec insertPrefix(final @NotNull CheckSpec checkSpec, final String prefix)
focal_class.class_method_signature: Checklist.getCheckPrefix(final @Nullable String moduleName,
                                   final @Nullable String checklistName)
focal_class.full_signature: static String getCheckPrefix(final @Nullable String moduleName,
                                   final @Nullable String checklistName)
focal_class.identifier: getCheckPrefix
focal_class.modifiers: static
focal_class.parameters: (final @Nullable String moduleName,
                                   final @Nullable String checklistName)
focal_class.return: String
focal_class.signature: String getCheckPrefix(final @Nullable String moduleName,
                                   final @Nullable String checklistName)
focal_class.class_method_signature: Checklist.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Checklist.toJson()
focal_class.full_signature: @Override public JsonObject toJson()
focal_class.identifier: toJson
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: JsonObject
focal_class.signature: JsonObject toJson()
focal_class.class_method_signature: Checklist.fromJson(final @NotNull String moduleName,
                                       final @Nullable URL manifestUrl,
                                       final @NotNull JsonObject json)
focal_class.full_signature: public static Checklist fromJson(final @NotNull String moduleName,
                                       final @Nullable URL manifestUrl,
                                       final @NotNull JsonObject json)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final @NotNull String moduleName,
                                       final @Nullable URL manifestUrl,
                                       final @NotNull JsonObject json)
focal_class.return: Checklist
focal_class.signature: Checklist fromJson(final @NotNull String moduleName,
                                       final @Nullable URL manifestUrl,
                                       final @NotNull JsonObject json)
focal_method.body: public List<QNodeTypeDefinition> getJcrNodetypes() {
          return jcrNodetypes;
      }
focal_method.class_method_signature: Checklist.getJcrNodetypes()
focal_method.full_signature: public List<QNodeTypeDefinition> getJcrNodetypes()
focal_method.identifier: getJcrNodetypes
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: List<QNodeTypeDefinition>
focal_method.signature: List<QNodeTypeDefinition> getJcrNodetypes()