Class PersistenceEntityResolver

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

    public class PersistenceEntityResolver
    extends java.lang.Object
    implements org.xml.sax.EntityResolver
    INTERNAL:

    Purpose: Provide a mechanism for retrieving the DTD file from the classpath

    Since:
    TopLink 10.1.3
    Author:
    Gordon Yorke, Guy Pelletier
    See Also:
    EntityResolver
    • Field Detail

      • m_localResources

        protected java.util.Hashtable m_localResources
    • Constructor Detail

      • PersistenceEntityResolver

        public PersistenceEntityResolver()
        INTERNAL:
    • Method Detail

      • populateLocalResources

        protected void populateLocalResources()
        INTERNAL:
      • getDtdFileName

        protected java.lang.String getDtdFileName​(java.lang.String docTypeId)
        INTERNAL:
      • getLocalResources

        public java.util.Hashtable getLocalResources()
        INTERNAL:
      • setLocalResources

        public void setLocalResources​(java.util.Hashtable ht)
        INTERNAL:
      • addLocalResource

        public void addLocalResource​(java.lang.String publicId,
                                     java.lang.String localFileName)
        INTERNAL:
      • resolveEntity

        public org.xml.sax.InputSource resolveEntity​(java.lang.String publicId,
                                                     java.lang.String systemId)
        INTERNAL:
        Specified by:
        resolveEntity in interface org.xml.sax.EntityResolver