org.openmdx.kernel.xml
Class EntityMapper

java.lang.Object
  extended by org.openmdx.kernel.xml.EntityMapper
All Implemented Interfaces:
EntityResolver

public class EntityMapper
extends Object
implements EntityResolver

EntityMapper


Constructor Summary
protected EntityMapper()
          Avoid instantiation
 
Method Summary
static EntityResolver getInstance()
          Get an entity mapper instance
static void registerPublicId(String publicId, String url)
          Register a public id mapping
static void registerSystemId(String systemId, String url)
          Register a system id mapping.
 InputSource resolveEntity(String publicId, String systemId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityMapper

protected EntityMapper()
Avoid instantiation

Method Detail

getInstance

public static EntityResolver getInstance()
Get an entity mapper instance

Returns:
an entity mapper instance

registerPublicId

public static void registerPublicId(String publicId,
                                    String url)
Register a public id mapping

Parameters:
publicId -
uri -

registerSystemId

public static void registerSystemId(String systemId,
                                    String url)
Register a system id mapping.

The preferred way is to use registerPublicId instead of the method.

Parameters:
systemId -
url -

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException
IOException


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.