public class DocumentBuilderFactoryImpl extends DocumentBuilderFactory
This class uses another DocumentBuilderFactory implementation and adds the validation capability to it.
Constructor and Description |
---|
DocumentBuilderFactoryImpl()
Creates a new instance by using the default DocumentBuilderFactory implementation
as the underlying parser.
|
DocumentBuilderFactoryImpl(DocumentBuilderFactory _factory)
Creates a new instance by specifying the underlying SAXParserFactory
implementation.
|
DocumentBuilderFactoryImpl(DocumentBuilderFactory _factory,
org.iso_relax.verifier.Schema _schema) |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name) |
boolean |
getFeature(String name) |
boolean |
isCoalescing() |
boolean |
isExpandEntityReference() |
boolean |
isIgnoringComments() |
boolean |
isIgnoringElementContentWhitespace() |
boolean |
isNamespaceAware() |
boolean |
isValidating() |
DocumentBuilder |
newDocumentBuilder() |
void |
setAttribute(String name,
Object value) |
void |
setCoalescing(boolean newVal) |
void |
setExpandEntityReference(boolean newVal) |
void |
setFeature(String name,
boolean value) |
void |
setIgnoringComments(boolean newVal) |
void |
setIgnoringElementContentWhitespace(boolean newVal) |
void |
setNamespaceAware(boolean newVal) |
void |
setValidating(boolean newVal) |
getSchema, isExpandEntityReferences, isXIncludeAware, newInstance, newInstance, setExpandEntityReferences, setSchema, setXIncludeAware
public DocumentBuilderFactoryImpl()
public DocumentBuilderFactoryImpl(DocumentBuilderFactory _factory)
public DocumentBuilderFactoryImpl(DocumentBuilderFactory _factory, org.iso_relax.verifier.Schema _schema)
public Object getAttribute(String name)
getAttribute
in class DocumentBuilderFactory
public void setAttribute(String name, Object value)
setAttribute
in class DocumentBuilderFactory
public boolean isCoalescing()
isCoalescing
in class DocumentBuilderFactory
public boolean isExpandEntityReference()
public boolean isIgnoringComments()
isIgnoringComments
in class DocumentBuilderFactory
public boolean isIgnoringElementContentWhitespace()
isIgnoringElementContentWhitespace
in class DocumentBuilderFactory
public boolean isNamespaceAware()
isNamespaceAware
in class DocumentBuilderFactory
public boolean isValidating()
isValidating
in class DocumentBuilderFactory
public DocumentBuilder newDocumentBuilder() throws ParserConfigurationException
newDocumentBuilder
in class DocumentBuilderFactory
ParserConfigurationException
public void setCoalescing(boolean newVal)
setCoalescing
in class DocumentBuilderFactory
public void setExpandEntityReference(boolean newVal)
public void setIgnoringComments(boolean newVal)
setIgnoringComments
in class DocumentBuilderFactory
public void setIgnoringElementContentWhitespace(boolean newVal)
setIgnoringElementContentWhitespace
in class DocumentBuilderFactory
public void setNamespaceAware(boolean newVal)
setNamespaceAware
in class DocumentBuilderFactory
public void setValidating(boolean newVal)
setValidating
in class DocumentBuilderFactory
public boolean getFeature(String name)
getFeature
in class DocumentBuilderFactory
public void setFeature(String name, boolean value)
setFeature
in class DocumentBuilderFactory
Copyright © 2016 Oracle Corporation. All rights reserved.