@Test public void testWithNamespaceAware() throws Exception { DocumentBuilderFactoryBuilder b = DocumentBuilderFactoryBuilder.newInstance(); assertEquals(true, b.getNamespaceAware()); assertEquals(true, b.build().isNamespaceAware()); assertEquals(b, b.withNamespaceAware(createNamespaceContext())); assertEquals(true, b.getNamespaceAware()); assertEquals(true, b.build().isNamespaceAware()); assertEquals(b, b.withNamespaceAware((NamespaceContext) null)); assertEquals(false, b.getNamespaceAware()); assertEquals(false, b.build().isNamespaceAware()); assertEquals(b, b.withNamespaceAware((Boolean) null)); assertEquals(false, b.build().isNamespaceAware()); }
public DocumentBuilderFactoryBuilder withNamespaceAware(Boolean b) { setNamespaceAware(b); return this; }
DocumentBuilderFactoryBuilder { public DocumentBuilderFactoryBuilder withNamespaceAware(Boolean b) { setNamespaceAware(b); return this; } }
DocumentBuilderFactoryBuilder { public DocumentBuilderFactoryBuilder withNamespaceAware(Boolean b) { setNamespaceAware(b); return this; } DocumentBuilderFactoryBuilder(); }
DocumentBuilderFactoryBuilder { public DocumentBuilderFactoryBuilder withNamespaceAware(Boolean b) { setNamespaceAware(b); return this; } DocumentBuilderFactoryBuilder(); static final DocumentBuilderFactoryBuilder newInstance(); static final DocumentBuilderFactoryBuilder newRestrictedInstance(); static final DocumentBuilderFactoryBuilder newInstanceIfNull(DocumentBuilderFactoryBuilder b); static final DocumentBuilderFactoryBuilder newRestrictedInstanceIfNull(DocumentBuilderFactoryBuilder b); static final DocumentBuilderFactoryBuilder newInstanceIfNull(DocumentBuilderFactoryBuilder b, NamespaceContext ctx); DocumentBuilderFactory configure(DocumentBuilderFactory f); DocumentBuilder configure(DocumentBuilder db); DocumentBuilder newDocumentBuilder(DocumentBuilderFactory f); DocumentBuilderFactory build(); DocumentBuilderFactoryBuilder withFeatures(Map<String, Boolean> f); DocumentBuilderFactoryBuilder withFeatures(KeyValuePairSet v); DocumentBuilderFactoryBuilder addFeature(String featureName, Boolean value); DocumentBuilderFactoryBuilder withValidating(Boolean b); DocumentBuilderFactoryBuilder withNamespaceAware(Boolean b); DocumentBuilderFactoryBuilder withNamespaceAware(NamespaceContext b); DocumentBuilderFactoryBuilder withIgnoreWhitespace(Boolean b); DocumentBuilderFactoryBuilder withExpandEntityReferences(Boolean b); DocumentBuilderFactoryBuilder withIgnoreComments(Boolean b); DocumentBuilderFactoryBuilder withCoalescing(Boolean b); DocumentBuilderFactoryBuilder withXIncludeAware(Boolean b); DocumentBuilderFactoryBuilder withEntityResolver(EntityResolver e); }
DocumentBuilderFactoryBuilder { public DocumentBuilderFactoryBuilder withNamespaceAware(Boolean b) { setNamespaceAware(b); return this; } DocumentBuilderFactoryBuilder(); static final DocumentBuilderFactoryBuilder newInstance(); static final DocumentBuilderFactoryBuilder newRestrictedInstance(); static final DocumentBuilderFactoryBuilder newInstanceIfNull(DocumentBuilderFactoryBuilder b); static final DocumentBuilderFactoryBuilder newRestrictedInstanceIfNull(DocumentBuilderFactoryBuilder b); static final DocumentBuilderFactoryBuilder newInstanceIfNull(DocumentBuilderFactoryBuilder b, NamespaceContext ctx); DocumentBuilderFactory configure(DocumentBuilderFactory f); DocumentBuilder configure(DocumentBuilder db); DocumentBuilder newDocumentBuilder(DocumentBuilderFactory f); DocumentBuilderFactory build(); DocumentBuilderFactoryBuilder withFeatures(Map<String, Boolean> f); DocumentBuilderFactoryBuilder withFeatures(KeyValuePairSet v); DocumentBuilderFactoryBuilder addFeature(String featureName, Boolean value); DocumentBuilderFactoryBuilder withValidating(Boolean b); DocumentBuilderFactoryBuilder withNamespaceAware(Boolean b); DocumentBuilderFactoryBuilder withNamespaceAware(NamespaceContext b); DocumentBuilderFactoryBuilder withIgnoreWhitespace(Boolean b); DocumentBuilderFactoryBuilder withExpandEntityReferences(Boolean b); DocumentBuilderFactoryBuilder withIgnoreComments(Boolean b); DocumentBuilderFactoryBuilder withCoalescing(Boolean b); DocumentBuilderFactoryBuilder withXIncludeAware(Boolean b); DocumentBuilderFactoryBuilder withEntityResolver(EntityResolver e); static final String DISABLE_DOCTYP; }