test_class.declarator: NS_FOO_PREFIX = "foo"
test_class.modifier: private static final
test_class.original_string: private static final String NS_FOO_PREFIX = "foo";
test_class.type: String
test_class.var_name: NS_FOO_PREFIX
test_class.declarator: NS_BAR_PREFIX = "bar"
test_class.modifier: private static final
test_class.original_string: private static final String NS_BAR_PREFIX = "bar";
test_class.type: String
test_class.var_name: NS_BAR_PREFIX
test_class.declarator: NS_FOO_URI = "http://foo.com"
test_class.modifier: private static final
test_class.original_string: private static final String NS_FOO_URI = "http://foo.com";
test_class.type: String
test_class.var_name: NS_FOO_URI
test_class.declarator: NS_BAR_URI = "http://bar.com"
test_class.modifier: private static final
test_class.original_string: private static final String NS_BAR_URI = "http://bar.com";
test_class.type: String
test_class.var_name: NS_BAR_URI
test_class.declarator: NS_FOO = JcrNs.create(NS_FOO_PREFIX, NS_FOO_URI)
test_class.modifier: private final
test_class.original_string: private final JcrNs NS_FOO = JcrNs.create(NS_FOO_PREFIX, NS_FOO_URI);
test_class.type: JcrNs
test_class.var_name: NS_FOO
test_class.declarator: NS_BAR = JcrNs.create(NS_BAR_PREFIX, NS_BAR_URI)
test_class.modifier: private final
test_class.original_string: private final JcrNs NS_BAR = JcrNs.create(NS_BAR_PREFIX, NS_BAR_URI);
test_class.type: JcrNs
test_class.var_name: NS_BAR
test_class.declarator: addNs = Arrays.asList(NS_FOO, NS_BAR)
test_class.modifier: private final
test_class.original_string: private final List<JcrNs> addNs = Arrays.asList(NS_FOO, NS_BAR);
test_class.type: List<JcrNs>
test_class.var_name: addNs
test_class.declarator: mapping = JsonCnd.toNamespaceMapping(addNs)
test_class.modifier: private final
test_class.original_string: private final NamespaceMapping mapping = JsonCnd.toNamespaceMapping(addNs);
test_class.type: NamespaceMapping
test_class.var_name: mapping
test_class.declarator: resolver = new DefaultNamePathResolver(mapping)
test_class.modifier: private final
test_class.original_string: private final NamePathResolver resolver = new DefaultNamePathResolver(mapping);
test_class.type: NamePathResolver
test_class.var_name: resolver
test_class.file: core/src/test/java/net/adamcin/oakpal/core/NamespaceMappingRequestTest.java
test_class.identifier: NamespaceMappingRequestTest
test_case.body: @Test
      public void testBuildWithJCRName_uri() {
          final NamespaceMappingRequest request = builder().withJCRName(String.format("{%s}folder", NS_FOO_URI)).build();
          assertTrue("foo mapping is retained",
                  request.resolveToJcrNs(mapping).stream().flatMap(Result::stream)
                          .anyMatch(inferTest1(NS_FOO::equals)));
          assertFalse("non-foo mappings are not retained",
                  request.resolveToJcrNs(mapping).stream().flatMap(Result::stream)
                          .anyMatch(inferTest1(NS_FOO::equals).negate()));
      }
test_case.class_method_signature: NamespaceMappingRequestTest.testBuildWithJCRName_uri()
test_case.full_signature: @Test public void testBuildWithJCRName_uri()
test_case.identifier: testBuildWithJCRName_uri
test_case.invocations: build withJCRName builder format assertTrue anyMatch flatMap stream resolveToJcrNs inferTest1 assertFalse anyMatch flatMap stream resolveToJcrNs negate inferTest1
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBuildWithJCRName_uri()
focal_class.declarator: BUILTIN_PREFIXES = NamespaceConstants.RESERVED_PREFIXES
focal_class.modifier: private static final
focal_class.original_string: private static final Collection<String> BUILTIN_PREFIXES = NamespaceConstants.RESERVED_PREFIXES;
focal_class.type: Collection<String>
focal_class.var_name: BUILTIN_PREFIXES
focal_class.declarator: BUILTIN_URIS = NamespaceConstants.RESERVED_URIS
focal_class.modifier: private static final
focal_class.original_string: private static final Collection<String> BUILTIN_URIS = NamespaceConstants.RESERVED_URIS;
focal_class.type: Collection<String>
focal_class.var_name: BUILTIN_URIS
focal_class.declarator: retainPrefixes
focal_class.modifier: private final
focal_class.original_string: private final Set<String> retainPrefixes;
focal_class.type: Set<String>
focal_class.var_name: retainPrefixes
focal_class.declarator: retainUris
focal_class.modifier: private final
focal_class.original_string: private final Set<String> retainUris;
focal_class.type: Set<String>
focal_class.var_name: retainUris
focal_class.file: core/src/main/java/net/adamcin/oakpal/core/NamespaceMappingRequest.java
focal_class.identifier: NamespaceMappingRequest
focal_class.class_method_signature: NamespaceMappingRequest.NamespaceMappingRequest(final @NotNull Set<String> retainPrefixes,
                                      final @NotNull Set<String> retainUris,
                                      final boolean retainBuiltins)
focal_class.full_signature: private  NamespaceMappingRequest(final @NotNull Set<String> retainPrefixes,
                                      final @NotNull Set<String> retainUris,
                                      final boolean retainBuiltins)
focal_class.identifier: NamespaceMappingRequest
focal_class.modifiers: private
focal_class.parameters: (final @NotNull Set<String> retainPrefixes,
                                      final @NotNull Set<String> retainUris,
                                      final boolean retainBuiltins)
focal_class.signature:  NamespaceMappingRequest(final @NotNull Set<String> retainPrefixes,
                                      final @NotNull Set<String> retainUris,
                                      final boolean retainBuiltins)
focal_class.class_method_signature: NamespaceMappingRequest.resolveToJcrNs(final @NotNull NamespaceMapping mapping)
focal_class.full_signature: public List<Result<JcrNs>> resolveToJcrNs(final @NotNull NamespaceMapping mapping)
focal_class.identifier: resolveToJcrNs
focal_class.modifiers: public
focal_class.parameters: (final @NotNull NamespaceMapping mapping)
focal_class.return: List<Result<JcrNs>>
focal_class.signature: List<Result<JcrNs>> resolveToJcrNs(final @NotNull NamespaceMapping mapping)
focal_method.body: public List<Result<JcrNs>> resolveToJcrNs(final @NotNull NamespaceMapping mapping) {
          final List<Result<JcrNs>> results = new ArrayList<>();
  
          retainPrefixes.stream()
                  .map(result1(prefix -> JcrNs.create(prefix, mapping.getURI(prefix))))
                  .forEach(results::add);
  
          final Set<String> retainedUris = results.stream().flatMap(Result::stream).map(JcrNs::getUri)
                  .collect(Collectors.toSet());
  
          retainUris.stream()
                  .filter(inSet(retainedUris).negate())
                  .map(result1(uri -> JcrNs.create(mapping.getPrefix(uri), uri)))
                  .forEach(results::add);
  
          return results;
      }
focal_method.class_method_signature: NamespaceMappingRequest.resolveToJcrNs(final @NotNull NamespaceMapping mapping)
focal_method.full_signature: public List<Result<JcrNs>> resolveToJcrNs(final @NotNull NamespaceMapping mapping)
focal_method.identifier: resolveToJcrNs
focal_method.invocations: forEach map stream result1 create getURI collect map flatMap stream toSet forEach map filter stream negate inSet result1 create getPrefix
focal_method.modifiers: public
focal_method.parameters: (final @NotNull NamespaceMapping mapping)
focal_method.return: List<Result<JcrNs>>
focal_method.signature: List<Result<JcrNs>> resolveToJcrNs(final @NotNull NamespaceMapping mapping)