Package net.ontopia.topicmaps.xml
Class IgnoreTopicMapDTDEntityResolver
- java.lang.Object
-
- net.ontopia.xml.ConfigurableEntityResolver
-
- net.ontopia.topicmaps.xml.IgnoreTopicMapDTDEntityResolver
-
- All Implemented Interfaces:
EntityResolver
public class IgnoreTopicMapDTDEntityResolver extends 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'.
-
-
Field Summary
Fields Modifier and Type Field Description protected InputSourceFactoryIF
factory
-
Fields inherited from class net.ontopia.xml.ConfigurableEntityResolver
public_ids, system_ids
-
-
Constructor Summary
Constructors Constructor Description IgnoreTopicMapDTDEntityResolver()
IgnoreTopicMapDTDEntityResolver(InputSourceFactoryIF factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSource
resolveEntity(String public_id, String system_id)
-
Methods inherited from class net.ontopia.xml.ConfigurableEntityResolver
addPublicIdSource, addSystemIdSource, removePublicIdSource, removeSystemIdSource
-
-
-
-
Field Detail
-
factory
protected InputSourceFactoryIF factory
-
-
Constructor Detail
-
IgnoreTopicMapDTDEntityResolver
public IgnoreTopicMapDTDEntityResolver()
-
IgnoreTopicMapDTDEntityResolver
public IgnoreTopicMapDTDEntityResolver(InputSourceFactoryIF factory)
-
-
Method Detail
-
resolveEntity
public InputSource resolveEntity(String public_id, String system_id)
- Specified by:
resolveEntity
in interfaceEntityResolver
- Overrides:
resolveEntity
in classConfigurableEntityResolver
-
-