org.merlotxml.merlot
Class XMLEditor.UserEntityResolver

java.lang.Object
  extended byorg.merlotxml.merlot.XMLEditor.UserEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver
Enclosing class:
XMLEditor

public class XMLEditor.UserEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver

custom dtd resolver which allows the user to find the dtd or specify a URL for it


Constructor Summary
XMLEditor.UserEntityResolver()
           
 
Method Summary
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
          Sets up a dialog box to allow a user to go and find the dtd on their filesystem, or enter a dtd URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLEditor.UserEntityResolver

public XMLEditor.UserEntityResolver()
Method Detail

resolveEntity

public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
                                             java.lang.String systemId)
                                      throws org.xml.sax.SAXException,
                                             java.io.IOException
Sets up a dialog box to allow a user to go and find the dtd on their filesystem, or enter a dtd URL.

Specified by:
resolveEntity in interface org.xml.sax.EntityResolver
Parameters:
publicId - the public identifier from the XML file for the dtd it's looking for
systemId - the system identifier from the XML file
Throws:
org.xml.sax.SAXException
java.io.IOException