Class XMLMapperEntityResolver

  • All Implemented Interfaces:
    org.xml.sax.EntityResolver

    public class XMLMapperEntityResolver
    extends java.lang.Object
    implements org.xml.sax.EntityResolver
    Offline entity resolver for the MyBatis DTDs.
    Author:
    Clinton Begin, Eduardo Macarron
    • Method Summary

      Modifier and Type Method Description
      org.xml.sax.InputSource resolveEntity​(java.lang.String publicId, java.lang.String systemId)
      Converts a public DTD into a local one.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XMLMapperEntityResolver

        public XMLMapperEntityResolver()
    • Method Detail

      • resolveEntity

        public org.xml.sax.InputSource resolveEntity​(java.lang.String publicId,
                                                     java.lang.String systemId)
                                              throws org.xml.sax.SAXException
        Converts a public DTD into a local one.
        Specified by:
        resolveEntity in interface org.xml.sax.EntityResolver
        Parameters:
        publicId - The public id that is what comes after "PUBLIC"
        systemId - The system id that is what comes after the public id.
        Returns:
        The InputSource for the DTD
        Throws:
        org.xml.sax.SAXException - If anything goes wrong