org.apache.maven.hibernate
Class HibernateEntityResolver

java.lang.Object
  extended byorg.apache.maven.hibernate.HibernateEntityResolver
All Implemented Interfaces:
EntityResolver

public class HibernateEntityResolver
extends Object
implements EntityResolver

A class to resolve external entity definitions for j2ee artifacts. Based on the J2EEEntityResolver from the J2EE plugin

Version:
$Id: HibernateEntityResolver.java 170200 2005-05-15 06:24:19Z brett $
Author:
eric pugh

Field Summary
static String[] HIBERNATE_DTDS
          list of j2ee dtds that are being made available
static String[] HIBERNATE_RESOURCES
           
 
Constructor Summary
HibernateEntityResolver()
          Creates a new instance of EntityResolver
 
Method Summary
protected  Map getIdToResource()
          Getter for publicId to resource name map.
 InputSource resolveEntity(String publicId, String systemId)
          resolve the entity given by the provided Ids
protected  void setIdToResource(Map idToResource)
          Setter for publicId to resource name map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIBERNATE_DTDS

public static final String[] HIBERNATE_DTDS
list of j2ee dtds that are being made available


HIBERNATE_RESOURCES

public static final String[] HIBERNATE_RESOURCES
Constructor Detail

HibernateEntityResolver

public HibernateEntityResolver()
Creates a new instance of EntityResolver

Method Detail

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
resolve the entity given by the provided Ids

Specified by:
resolveEntity in interface EntityResolver
Parameters:
publicId - the public id of the entity
systemId - the 'system location' (typically a URL) of the entity
Returns:
an input source for retrieval of the entity
Throws:
IOException - when an I/O error occurs retrieving the entity
SAXException - if there are any problems

getIdToResource

protected Map getIdToResource()
Getter for publicId to resource name map.

Returns:
Value of property idToResource.

setIdToResource

protected void setIdToResource(Map idToResource)
Setter for publicId to resource name map.

Parameters:
idToResource - New value of property idToResource.


Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.