net.ontopia.xml
Class AbstractXMLFormatReader

java.lang.Object
  extended by net.ontopia.xml.AbstractXMLFormatReader
Direct Known Subclasses:
OSLSchemaReader, TMXMLReader, XFMLTopicMapReader, XTMTopicMapReader

public abstract class AbstractXMLFormatReader
extends java.lang.Object

INTERNAL: A common base class for Reader implementations that can read XML-based syntaxes.

Since:
1.2

Field Summary
protected  LocatorIF base_address
           
protected  org.xml.sax.InputSource source
           
protected  XMLReaderFactoryIF xrfactory
           
 
Constructor Summary
AbstractXMLFormatReader()
           
 
Method Summary
protected abstract  void configureXMLReaderFactory(ConfiguredXMLReaderFactory cxrfactory)
           
 LocatorIF getBaseAddress()
          INTERNAL: Gets the top level base address of the input source.
 org.xml.sax.InputSource getInputSource()
          INTERNAL: Gets the SAX input source used by the reader.
 XMLReaderFactoryIF getXMLReaderFactory()
          INTERNAL: Gets the XMLReaderFactoryIF that will be used to create XML parser objects inside the reader.
 void setBaseAddress(LocatorIF base_address)
          INTERNAL: Sets the top level base address of the input source.
 void setInputSource(org.xml.sax.InputSource source)
          INTERNAL: Sets the SAX input source used by the reader.
 void setXMLReaderFactory(XMLReaderFactoryIF xrfactory)
          INTERNAL: Sets the XMLReaderFactoryIF that will be used to create XML parser objects inside the reader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected org.xml.sax.InputSource source

base_address

protected LocatorIF base_address

xrfactory

protected XMLReaderFactoryIF xrfactory
Constructor Detail

AbstractXMLFormatReader

public AbstractXMLFormatReader()
Method Detail

getInputSource

public org.xml.sax.InputSource getInputSource()
INTERNAL: Gets the SAX input source used by the reader.


setInputSource

public void setInputSource(org.xml.sax.InputSource source)
INTERNAL: Sets the SAX input source used by the reader.


getBaseAddress

public LocatorIF getBaseAddress()
INTERNAL: Gets the top level base address of the input source.


setBaseAddress

public void setBaseAddress(LocatorIF base_address)
INTERNAL: Sets the top level base address of the input source.

The top level base address is used to resolve relative addresses during input source processing. The top level base address can be overriden by xml:base constructs in the input source. This property need not be set if the input source specifies the base address.


getXMLReaderFactory

public XMLReaderFactoryIF getXMLReaderFactory()
INTERNAL: Gets the XMLReaderFactoryIF that will be used to create XML parser objects inside the reader.


setXMLReaderFactory

public void setXMLReaderFactory(XMLReaderFactoryIF xrfactory)
INTERNAL: Sets the XMLReaderFactoryIF that will be used to create XML parser objects inside the reader.

Default: ConfiguredXMLReaderFactory using an IgnoreTopicMapDTDEntityResolver entity resolver.

The factory is free to configure the XML reader object as it sees fit, but the reader will use its own internal content handler.


configureXMLReaderFactory

protected abstract void configureXMLReaderFactory(ConfiguredXMLReaderFactory cxrfactory)


Copyright © 2000-2012 Ontopia.