org.apache.maven.ear.j2ee
Class J2EEEntityResolver

java.lang.Object
  extended by org.apache.maven.ear.j2ee.J2EEEntityResolver
All Implemented Interfaces:
EntityResolver

public class J2EEEntityResolver
extends Object
implements EntityResolver

A class to resolve external entity definitions for j2ee artifacts.

Author:
dion

Field Summary
static String[] J2EE_DTDS
          list of j2ee dtds that are being made available
static String[] J2EE_RESOURCES
          list of j2ee resources that are being made available
 
Constructor Summary
J2EEEntityResolver()
          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 newIdToResource)
          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

J2EE_DTDS

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


J2EE_RESOURCES

public static final String[] J2EE_RESOURCES
list of j2ee resources that are being made available

Constructor Detail

J2EEEntityResolver

public J2EEEntityResolver()
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 newIdToResource)
Setter for publicId to resource name map.

Parameters:
newIdToResource - New value of property idToResource.


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