org.apache.axiom.om.impl.dom.jaxp
Class DocumentBuilderImpl
java.lang.Object
javax.xml.parsers.DocumentBuilder
org.apache.axiom.om.impl.dom.jaxp.DocumentBuilderImpl
public class DocumentBuilderImpl
- extends javax.xml.parsers.DocumentBuilder
Method Summary |
org.w3c.dom.DOMImplementation |
getDOMImplementation()
|
javax.xml.validation.Schema |
getSchema()
|
boolean |
isNamespaceAware()
Returns whether the parser is configured to understand namespaces or not. |
boolean |
isValidating()
The StAX builder used is the org.apache.axiom.om.impl.llom.StAXOMBuilder is a validating
builder. |
org.w3c.dom.Document |
newDocument()
Returns a new document impl. |
org.w3c.dom.Document |
parse(java.io.File file)
|
org.w3c.dom.Document |
parse(org.xml.sax.InputSource inputSource)
|
org.w3c.dom.Document |
parse(java.io.InputStream is)
|
org.w3c.dom.Document |
parse(java.io.InputStream is,
java.lang.String systemId)
|
org.w3c.dom.Document |
parse(java.lang.String uri)
|
void |
setEntityResolver(org.xml.sax.EntityResolver arg0)
|
void |
setErrorHandler(org.xml.sax.ErrorHandler arg0)
|
Methods inherited from class javax.xml.parsers.DocumentBuilder |
isXIncludeAware, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factory
private DocumentBuilderFactoryImpl factory
- The DocumentBuilderFactory used to create this document builder
DocumentBuilderImpl
protected DocumentBuilderImpl(DocumentBuilderFactoryImpl fac)
isNamespaceAware
public boolean isNamespaceAware()
- Returns whether the parser is configured to understand namespaces or not. The StAX parser
used by this DOM impl is namespace aware therefore this will always return true.
- Specified by:
isNamespaceAware
in class javax.xml.parsers.DocumentBuilder
- See Also:
DocumentBuilder.isNamespaceAware()
isValidating
public boolean isValidating()
- The StAX builder used is the org.apache.axiom.om.impl.llom.StAXOMBuilder is a validating
builder.
- Specified by:
isValidating
in class javax.xml.parsers.DocumentBuilder
- See Also:
DocumentBuilder.isValidating()
getDOMImplementation
public org.w3c.dom.DOMImplementation getDOMImplementation()
- Specified by:
getDOMImplementation
in class javax.xml.parsers.DocumentBuilder
newDocument
public org.w3c.dom.Document newDocument()
- Returns a new document impl.
- Specified by:
newDocument
in class javax.xml.parsers.DocumentBuilder
- See Also:
DocumentBuilder.newDocument()
setEntityResolver
public void setEntityResolver(org.xml.sax.EntityResolver arg0)
- Specified by:
setEntityResolver
in class javax.xml.parsers.DocumentBuilder
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler arg0)
- Specified by:
setErrorHandler
in class javax.xml.parsers.DocumentBuilder
parse
public org.w3c.dom.Document parse(org.xml.sax.InputSource inputSource)
throws org.xml.sax.SAXException,
java.io.IOException
- Specified by:
parse
in class javax.xml.parsers.DocumentBuilder
- Throws:
org.xml.sax.SAXException
java.io.IOException
parse
public org.w3c.dom.Document parse(java.io.InputStream is)
throws org.xml.sax.SAXException,
java.io.IOException
- Overrides:
parse
in class javax.xml.parsers.DocumentBuilder
- Throws:
org.xml.sax.SAXException
java.io.IOException
- See Also:
DocumentBuilder.parse(java.io.InputStream)
parse
public org.w3c.dom.Document parse(java.io.File file)
throws org.xml.sax.SAXException,
java.io.IOException
- Overrides:
parse
in class javax.xml.parsers.DocumentBuilder
- Throws:
org.xml.sax.SAXException
java.io.IOException
- See Also:
DocumentBuilder.parse(java.io.File)
parse
public org.w3c.dom.Document parse(java.io.InputStream is,
java.lang.String systemId)
throws org.xml.sax.SAXException,
java.io.IOException
- Overrides:
parse
in class javax.xml.parsers.DocumentBuilder
- Throws:
org.xml.sax.SAXException
java.io.IOException
- See Also:
DocumentBuilder.parse(java.io.InputStream, String)
parse
public org.w3c.dom.Document parse(java.lang.String uri)
throws org.xml.sax.SAXException,
java.io.IOException
- Overrides:
parse
in class javax.xml.parsers.DocumentBuilder
- Throws:
org.xml.sax.SAXException
java.io.IOException
- See Also:
DocumentBuilder.parse(String)
getSchema
public javax.xml.validation.Schema getSchema()
- Overrides:
getSchema
in class javax.xml.parsers.DocumentBuilder