Top Description Fields Constructors Methods
org.eclipse.persistence.internal.sessions.factories

public Class PersistenceEntityResolver

extends Object
implements EntityResolver
Class Inheritance
All Implemented Interfaces
org.xml.sax.EntityResolver
Imports
java.io.InputStream, java.security.AccessController, .PrivilegedActionException, java.util.Hashtable, .Enumeration, org.eclipse.persistence.internal.security.PrivilegedAccessHelper, .PrivilegedGetClassLoaderForClass, org.xml.sax.InputSource, .EntityResolver

INTERNAL:

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

Author
Gordon Yorke, Guy Pelletier
Since
TopLink 10.1.3
See Also
org.xml.sax.EntityResolver

Field Summary

Modifier and TypeField and Description
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected Hashtable<String, String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addLocalResource(String publicId, String localFileName)

INTERNAL:

protected String
getDtdFileName(String docTypeId)

INTERNAL:

public Hashtable<String, String>
getLocalResources()

INTERNAL:

protected void
public InputSource
resolveEntity(String
The public identifier of the external entity being referenced, or null if none was supplied.
publicId
,
String
The system identifier of the external entity being referenced.
systemId
)

Implements org.xml.sax.EntityResolver.resolveEntity.

INTERNAL:
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

doctTypeId40back to summary
protected static final String doctTypeId40
doctTypeId45back to summary
protected static final String doctTypeId45
doctTypeId904back to summary
protected static final String doctTypeId904
dtdFileName40back to summary
protected static final String dtdFileName40
dtdFileName45back to summary
protected static final String dtdFileName45
dtdFileName904back to summary
protected static final String dtdFileName904
m_localResourcesback to summary
protected Hashtable<String, String> m_localResources

Constructor Detail

PersistenceEntityResolverback to summary
public PersistenceEntityResolver()

INTERNAL:

Method Detail

addLocalResourceback to summary
public void addLocalResource(String publicId, String localFileName)

INTERNAL:

getDtdFileNameback to summary
protected String getDtdFileName(String docTypeId)

INTERNAL:

getLocalResourcesback to summary
public Hashtable<String, String> getLocalResources()

INTERNAL:

populateLocalResourcesback to summary
protected void populateLocalResources()

INTERNAL:

resolveEntityback to summary
public InputSource resolveEntity(String publicId, String systemId)

Implements org.xml.sax.EntityResolver.resolveEntity.

INTERNAL:

Parameters
publicId:String

Doc from org.xml.sax.EntityResolver.resolveEntity.

The public identifier of the external entity being referenced, or null if none was supplied.

systemId:String

Doc from org.xml.sax.EntityResolver.resolveEntity.

The system identifier of the external entity being referenced.

Returns:InputSource

Doc from org.xml.sax.EntityResolver.resolveEntity.

An InputSource object describing the new input source, or null to request that the parser open a regular URI connection to the system identifier.

Annotations
@Override
setLocalResourcesback to summary
public void setLocalResources(Hashtable<String, String> ht)

INTERNAL: