Class PersistenceEntityResolver
- java.lang.Object
-
- org.eclipse.persistence.internal.sessions.factories.PersistenceEntityResolver
-
- All Implemented Interfaces:
org.xml.sax.EntityResolver
public class PersistenceEntityResolver extends java.lang.Object implements org.xml.sax.EntityResolverINTERNAL: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 Summary
Fields Modifier and Type Field Description protected static java.lang.StringdoctTypeId40protected static java.lang.StringdoctTypeId45protected static java.lang.StringdoctTypeId904protected static java.lang.StringdtdFileName40protected static java.lang.StringdtdFileName45protected static java.lang.StringdtdFileName904protected java.util.Hashtablem_localResources
-
Constructor Summary
Constructors Constructor Description PersistenceEntityResolver()INTERNAL:
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLocalResource(java.lang.String publicId, java.lang.String localFileName)INTERNAL:protected java.lang.StringgetDtdFileName(java.lang.String docTypeId)INTERNAL:java.util.HashtablegetLocalResources()INTERNAL:protected voidpopulateLocalResources()INTERNAL:org.xml.sax.InputSourceresolveEntity(java.lang.String publicId, java.lang.String systemId)INTERNAL:voidsetLocalResources(java.util.Hashtable ht)INTERNAL:
-
-
-
Field Detail
-
m_localResources
protected java.util.Hashtable m_localResources
-
dtdFileName40
protected static final java.lang.String dtdFileName40
- See Also:
- Constant Field Values
-
doctTypeId40
protected static final java.lang.String doctTypeId40
- See Also:
- Constant Field Values
-
dtdFileName45
protected static final java.lang.String dtdFileName45
- See Also:
- Constant Field Values
-
doctTypeId45
protected static final java.lang.String doctTypeId45
- See Also:
- Constant Field Values
-
dtdFileName904
protected static final java.lang.String dtdFileName904
- See Also:
- Constant Field Values
-
doctTypeId904
protected static final java.lang.String doctTypeId904
- See Also:
- Constant Field Values
-
-
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:
resolveEntityin interfaceorg.xml.sax.EntityResolver
-
-