Package ball.xml
Class FluentDocumentBuilderFactory
- java.lang.Object
-
- javax.xml.parsers.DocumentBuilderFactory
-
- ball.xml.FluentDocumentBuilderFactory
-
public class FluentDocumentBuilderFactory extends DocumentBuilderFactory
- Author:
- Allen D. Ball
-
-
Constructor Summary
Constructors Constructor Description FluentDocumentBuilderFactory()
Sole public constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String name)
boolean
getFeature(String name)
FluentDocument.Builder
newDocumentBuilder()
static FluentDocumentBuilderFactory
newInstance()
static FluentDocumentBuilderFactory
newInstance(String name, ClassLoader loader)
void
setAttribute(String name, Object value)
void
setFeature(String name, boolean value)
-
Methods inherited from class javax.xml.parsers.DocumentBuilderFactory
getSchema, isCoalescing, isExpandEntityReferences, isIgnoringComments, isIgnoringElementContentWhitespace, isNamespaceAware, isValidating, isXIncludeAware, newDefaultInstance, setCoalescing, setExpandEntityReferences, setIgnoringComments, setIgnoringElementContentWhitespace, setNamespaceAware, setSchema, setValidating, setXIncludeAware
-
-
-
-
Constructor Detail
-
FluentDocumentBuilderFactory
public FluentDocumentBuilderFactory() throws FactoryConfigurationError
Sole public constructor.- Throws:
FactoryConfigurationError
-
-
Method Detail
-
newInstance
public static FluentDocumentBuilderFactory newInstance() throws FactoryConfigurationError
- Returns:
FluentDocumentBuilderFactory
- Throws:
FactoryConfigurationError
-
newInstance
public static FluentDocumentBuilderFactory newInstance(String name, ClassLoader loader) throws FactoryConfigurationError
- Parameters:
name
- TheClass
name.loader
- TheClassLoader
.- Returns:
FluentDocumentBuilderFactory
- Throws:
FactoryConfigurationError
-
setAttribute
public void setAttribute(String name, Object value) throws IllegalArgumentException
- Specified by:
setAttribute
in classDocumentBuilderFactory
- Throws:
IllegalArgumentException
-
getAttribute
public Object getAttribute(String name) throws IllegalArgumentException
- Specified by:
getAttribute
in classDocumentBuilderFactory
- Throws:
IllegalArgumentException
-
newDocumentBuilder
public FluentDocument.Builder newDocumentBuilder() throws ParserConfigurationException
- Specified by:
newDocumentBuilder
in classDocumentBuilderFactory
- Throws:
ParserConfigurationException
-
setFeature
public void setFeature(String name, boolean value) throws ParserConfigurationException
- Specified by:
setFeature
in classDocumentBuilderFactory
- Throws:
ParserConfigurationException
-
getFeature
public boolean getFeature(String name) throws ParserConfigurationException
- Specified by:
getFeature
in classDocumentBuilderFactory
- Throws:
ParserConfigurationException
-
-