public class Configuration
extends org.apache.xerces.util.ParserConfigurationSettings
implements org.apache.xerces.xni.parser.XMLParserConfiguration
Configuration
holds information for parsing a dtd document to an xsd document.Constructor and Description |
---|
Configuration()
Instantiates a new dtd2 xsd configuration.
|
Modifier and Type | Method and Description |
---|---|
org.apache.xerces.xni.XMLDocumentHandler |
getDocumentHandler()
Gets the document handler.
|
org.apache.xerces.xni.XMLDTDContentModelHandler |
getDTDContentModelHandler()
Gets the dTD content model handler.
|
org.apache.xerces.xni.XMLDTDHandler |
getDTDHandler()
Gets the dTD handler.
|
org.apache.xerces.xni.parser.XMLEntityResolver |
getEntityResolver()
Gets the entity resolver.
|
org.apache.xerces.xni.parser.XMLErrorHandler |
getErrorHandler()
Gets the error handler.
|
Locale |
getLocale()
Gets the locale.
|
void |
parse(org.apache.xerces.xni.parser.XMLInputSource source)
Parses the given
XMLInputSource |
void |
setDocumentHandler(org.apache.xerces.xni.XMLDocumentHandler handler)
Sets the document handler.
|
void |
setDTDContentModelHandler(org.apache.xerces.xni.XMLDTDContentModelHandler handler)
Sets the dTD content model handler.
|
void |
setDTDHandler(org.apache.xerces.xni.XMLDTDHandler handler)
Sets the DTD handler.
|
void |
setEntityResolver(org.apache.xerces.xni.parser.XMLEntityResolver resolver)
Sets the entity resolver.
|
void |
setErrorHandler(org.apache.xerces.xni.parser.XMLErrorHandler handler)
Sets the error handler.
|
void |
setLocale(Locale locale)
Sets the locale.
|
addRecognizedFeatures, addRecognizedProperties, checkFeature, checkProperty, getFeature, getProperty, setFeature, setProperty
public org.apache.xerces.xni.XMLDocumentHandler getDocumentHandler()
getDocumentHandler
in interface org.apache.xerces.xni.parser.XMLParserConfiguration
XMLParserConfiguration.getDocumentHandler()
public org.apache.xerces.xni.XMLDTDContentModelHandler getDTDContentModelHandler()
getDTDContentModelHandler
in interface org.apache.xerces.xni.parser.XMLParserConfiguration
XMLParserConfiguration.getDTDContentModelHandler()
public org.apache.xerces.xni.XMLDTDHandler getDTDHandler()
getDTDHandler
in interface org.apache.xerces.xni.parser.XMLParserConfiguration
XMLParserConfiguration.getDTDHandler()
public org.apache.xerces.xni.parser.XMLEntityResolver getEntityResolver()
getEntityResolver
in interface org.apache.xerces.xni.parser.XMLParserConfiguration
XMLParserConfiguration.getEntityResolver()
public org.apache.xerces.xni.parser.XMLErrorHandler getErrorHandler()
getErrorHandler
in interface org.apache.xerces.xni.parser.XMLParserConfiguration
XMLParserConfiguration.getErrorHandler()
public Locale getLocale()
getLocale
in interface org.apache.xerces.xni.parser.XMLParserConfiguration
XMLParserConfiguration.getLocale()
public void parse(org.apache.xerces.xni.parser.XMLInputSource source) throws IOException
XMLInputSource
parse
in interface org.apache.xerces.xni.parser.XMLParserConfiguration
source
- the sourceIOException
- Signals that an I/O exception has occurred.XMLParserConfiguration.parse(XMLInputSource)
public void setDocumentHandler(org.apache.xerces.xni.XMLDocumentHandler handler)
setDocumentHandler
in interface org.apache.xerces.xni.parser.XMLParserConfiguration
handler
- the new document handlerXMLParserConfiguration.setDocumentHandler(XMLDocumentHandler)
public void setDTDContentModelHandler(org.apache.xerces.xni.XMLDTDContentModelHandler handler)
setDTDContentModelHandler
in interface org.apache.xerces.xni.parser.XMLParserConfiguration
handler
- the new dTD content model handlerXMLParserConfiguration.setDTDContentModelHandler(XMLDTDContentModelHandler)
public void setDTDHandler(org.apache.xerces.xni.XMLDTDHandler handler)
setDTDHandler
in interface org.apache.xerces.xni.parser.XMLParserConfiguration
handler
- the new DTD handlerXMLParserConfiguration.setDTDHandler(XMLDTDHandler)
public void setEntityResolver(org.apache.xerces.xni.parser.XMLEntityResolver resolver)
setEntityResolver
in interface org.apache.xerces.xni.parser.XMLParserConfiguration
resolver
- the new entity resolverXMLParserConfiguration.setEntityResolver(XMLEntityResolver)
public void setErrorHandler(org.apache.xerces.xni.parser.XMLErrorHandler handler)
setErrorHandler
in interface org.apache.xerces.xni.parser.XMLParserConfiguration
handler
- the new error handlerXMLParserConfiguration.setErrorHandler(XMLErrorHandler)
public void setLocale(Locale locale) throws org.apache.xerces.xni.XNIException
setLocale
in interface org.apache.xerces.xni.parser.XMLParserConfiguration
locale
- the new localeorg.apache.xerces.xni.XNIException
- thrown if the parser does not support the specified localeXMLParserConfiguration.setLocale(Locale)
Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.