net.ontopia.xml
Class ConfigurableEntityResolver

java.lang.Object
  extended by net.ontopia.xml.ConfigurableEntityResolver
All Implemented Interfaces:
EntityResolver
Direct Known Subclasses:
IgnoreTopicMapDTDEntityResolver, IncludeTopicMapDTDEntityResolver

public class ConfigurableEntityResolver
extends Object
implements EntityResolver

INTERNAL: SAX entity resolver that makes sure that doctypes referencing the XTM 1.0 DTD is ignored.

Public id mappings take precedence over system id mappings.


Field Summary
protected  Map public_ids
           
protected  Map system_ids
           
 
Constructor Summary
ConfigurableEntityResolver()
           
 
Method Summary
 void addPublicIdSource(String public_id, InputSourceFactoryIF is_factory)
          INTERNAL: Registers the input source factory with the given public id.
 void addSystemIdSource(String system_id, InputSourceFactoryIF is_factory)
          INTERNAL: Registers the input source factory with the given system id.
 void removePublicIdSource(String public_id)
          INTERNAL: Unregisters the input source factory registered with the given public id.
 void removeSystemIdSource(String system_id)
          INTERNAL: Unregisters the input source factory registered with the given system id.
 InputSource resolveEntity(String public_id, String system_id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

public_ids

protected Map public_ids

system_ids

protected Map system_ids
Constructor Detail

ConfigurableEntityResolver

public ConfigurableEntityResolver()
Method Detail

addPublicIdSource

public void addPublicIdSource(String public_id,
                              InputSourceFactoryIF is_factory)
INTERNAL: Registers the input source factory with the given public id.


removePublicIdSource

public void removePublicIdSource(String public_id)
INTERNAL: Unregisters the input source factory registered with the given public id.


addSystemIdSource

public void addSystemIdSource(String system_id,
                              InputSourceFactoryIF is_factory)
INTERNAL: Registers the input source factory with the given system id.


removeSystemIdSource

public void removeSystemIdSource(String system_id)
INTERNAL: Unregisters the input source factory registered with the given system id.


resolveEntity

public InputSource resolveEntity(String public_id,
                                 String system_id)
Specified by:
resolveEntity in interface EntityResolver


Copyright © 2000-2012 Ontopia.