|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ontopia.xml.ConfiguredXMLReaderFactory
public class ConfiguredXMLReaderFactory
INTERNAL: A factory for creating configured SAX2 XMLReaders.
The XML readers created by this factory will have their error handler, entity resolver and dtd handler properties set to the values defined on the factory. If the property on the factory is null the property on the XML reader will not be set at all.
Field Summary | |
---|---|
protected DTDHandler |
dtd_handler
|
protected EntityResolver |
entity_resolver
|
protected ErrorHandler |
error_handler
|
protected Map |
features
|
protected Map |
properties
|
protected XMLReaderFactoryIF |
xrfactory
|
Constructor Summary | |
---|---|
ConfiguredXMLReaderFactory()
|
|
ConfiguredXMLReaderFactory(XMLReaderFactoryIF xrfactory)
|
Method Summary | |
---|---|
XMLReader |
createXMLReader()
INTERNAL: Creates a new SAX2 XMLReader object using the nested factory and configures the object created before returning it. |
DTDHandler |
getDTDHandler()
INTERNAL: Gets the DTD handler that all XMLReaders should have set when created. |
EntityResolver |
getEntityResolver()
INTERNAL: Gets the entity resolver that all XMLReaders should have set when created. |
ErrorHandler |
getErrorHandler()
INTERNAL: Gets the error handler that all XMLReaders should have set when created. |
boolean |
getFeature(String uri)
INTERNAL: Returns the value of a SAX 2.0 feature as it will be set in new XMLReaders created by this factory. |
Object |
getProperty(String uri)
INTERNAL: Returns the value of a SAX 2.0 property as it will be set in new XMLReaders created by this factory. |
void |
setDTDHandler(DTDHandler dtd_handler)
INTERNAL: Sets the DTD handler that all XMLReaders should have set when created. |
void |
setEntityResolver(EntityResolver entity_resolver)
INTERNAL: Sets the entity resolver that all XMLReaders should have set when created. |
void |
setErrorHandler(ErrorHandler error_handler)
INTERNAL: Sets the error handler that all XMLReaders should have set when created. |
void |
setFeature(String uri,
boolean state)
INTERNAL: Sets a SAX 2.0 feature to the value all XMLReaders should have when created by this factory. |
void |
setProperty(String uri,
Object value)
INTERNAL: Sets a SAX 2.0 property to the value all XMLReaders should have when created by this factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XMLReaderFactoryIF xrfactory
protected ErrorHandler error_handler
protected EntityResolver entity_resolver
protected DTDHandler dtd_handler
protected Map features
protected Map properties
Constructor Detail |
---|
public ConfiguredXMLReaderFactory()
public ConfiguredXMLReaderFactory(XMLReaderFactoryIF xrfactory)
Method Detail |
---|
public ErrorHandler getErrorHandler()
public void setErrorHandler(ErrorHandler error_handler)
public EntityResolver getEntityResolver()
public void setEntityResolver(EntityResolver entity_resolver)
public DTDHandler getDTDHandler()
public void setDTDHandler(DTDHandler dtd_handler)
public boolean getFeature(String uri) throws SAXNotRecognizedException
SAXNotRecognizedException
- Thrown when asked for a feature
that has not been set.public void setFeature(String uri, boolean state)
public Object getProperty(String uri)
public void setProperty(String uri, Object value)
public XMLReader createXMLReader() throws SAXException
createXMLReader
in interface XMLReaderFactoryIF
SAXException
- Thrown if there are any problems either
creating the reader or configuring it.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |