net.ontopia.topicmaps.xml
Class IgnoreTopicMapDTDEntityResolver

java.lang.Object
  extended by net.ontopia.xml.ConfigurableEntityResolver
      extended by net.ontopia.topicmaps.xml.IgnoreTopicMapDTDEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

public class IgnoreTopicMapDTDEntityResolver
extends net.ontopia.xml.ConfigurableEntityResolver

INTERNAL: SAX entity resolver that makes sure that doctype declarations referencing the ISO 13250 and XTM 1.0 DTDs using public ids are ignored.

The resolver returns an empty input source for each entity with the public ids:

   "-//TopicMaps.Org//DTD XML Topic Map (XTM) 1.0//EN"
   "+//IDN ontopia.net//DTD Topic Map Interchange Format (Strict 1.0)//EN"
 
An empty input source is also used if the system_id ends with '.dtd'.


Constructor Summary
IgnoreTopicMapDTDEntityResolver()
           
IgnoreTopicMapDTDEntityResolver(net.ontopia.xml.InputSourceFactoryIF factory)
           
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String public_id, java.lang.String system_id)
           
 
Methods inherited from class net.ontopia.xml.ConfigurableEntityResolver
addPublicIdSource, addSystemIdSource, removePublicIdSource, removeSystemIdSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IgnoreTopicMapDTDEntityResolver

public IgnoreTopicMapDTDEntityResolver()

IgnoreTopicMapDTDEntityResolver

public IgnoreTopicMapDTDEntityResolver(net.ontopia.xml.InputSourceFactoryIF factory)
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String public_id,
                                             java.lang.String system_id)
Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Overrides:
resolveEntity in class net.ontopia.xml.ConfigurableEntityResolver


Copyright © 2000-2010 Ontopia.