|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.newsml.toolkit.dom.XercesDOMFactory
Xerces implementation of DOMFactory.
| Constructor Summary | |
XercesDOMFactory()
Default constructor. |
|
XercesDOMFactory(boolean validation)
Constructor. |
|
| Method Summary | |
org.w3c.dom.Document |
createDOM()
Construct a new, empty DOM document. |
org.w3c.dom.Document |
createDOM(Reader reader,
String baseURL)
Construct a DOM package from the URL provided. |
org.w3c.dom.Document |
createDOM(String url)
Construct a DOM package from the URL provided. |
void |
error(org.xml.sax.SAXParseException e)
Catch validation errors. |
void |
fatalError(org.xml.sax.SAXParseException e)
Catch fatal errors. |
boolean |
getValidation()
Get the current validation state. |
org.xml.sax.InputSource |
resolveEntity(String publicId,
String systemId)
Entity resolver to ignore external entities (including DTD). |
void |
setValidation(boolean validation)
Require or forbid DTD validation. |
void |
warning(org.xml.sax.SAXParseException e)
Catch warnings. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XercesDOMFactory()
Construct a new, non-validating DOM factory.
public XercesDOMFactory(boolean validation)
Construct a new DOM factory with the requested validation type.
validation - true to require DTD validation, false to
forbid it.DOMFactory.setValidation(boolean)| Method Detail |
public void setValidation(boolean validation)
DOMFactorysetValidation in interface DOMFactoryDOMFactory.setValidation(boolean)public boolean getValidation()
DOMFactorygetValidation in interface DOMFactoryDOMFactory.getValidation()public org.w3c.dom.Document createDOM()
DOMFactorycreateDOM in interface DOMFactoryDOMFactory.createDOM()
public org.w3c.dom.Document createDOM(String url)
throws IOException
DOMFactorycreateDOM in interface DOMFactoryDOMFactory.createDOM(String)
public org.w3c.dom.Document createDOM(Reader reader,
String baseURL)
throws IOException
DOMFactorycreateDOM in interface DOMFactoryDOMFactory.createDOM(Reader,String)
public org.xml.sax.InputSource resolveEntity(String publicId,
String systemId)
throws IOException
createDOM() so that the
Xerces XML parser will not attempt to load the external
DTD subset; it may not be necessary for other DOM
libraries.resolveEntity in interface org.xml.sax.EntityResolverpublicId - The public identifier (ignored).systemId - The system identifier (ignored).public void warning(org.xml.sax.SAXParseException e)
warning in interface org.xml.sax.ErrorHandlere - A SAXParseException describing the warning.
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXParseException
error in interface org.xml.sax.ErrorHandlere - A SAXParseException describing the validation error.Always - throws the exception on back.
public void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXParseException
fatalError in interface org.xml.sax.ErrorHandlere - A SAXParseException describing the fatal error.Always - throws the exception on back.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||