org.objectweb.jorm.xml2mi.lib
Class DTDResolver

java.lang.Object
  extended byorg.objectweb.jorm.xml2mi.lib.DTDResolver
All Implemented Interfaces:
Loggable, org.apache.xerces.xni.parser.XMLEntityResolver

public class DTDResolver
extends java.lang.Object
implements org.apache.xerces.xni.parser.XMLEntityResolver, Loggable

Author:
S.Chassande-Barrioz

Constructor Summary
DTDResolver(java.util.ArrayList dtdLocations)
           
DTDResolver(java.util.ArrayList dtdLocations, Logger logger)
           
 
Method Summary
 Logger getLogger()
          Returns a logger to an component that wants to log things.
 LoggerFactory getLoggerFactory()
          Returns a logger factory that allows the creation of new loggers.
 org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier identifier)
           
 void setLogger(Logger logger)
          Assigns a logger to an component that wants to log things.
 void setLoggerFactory(LoggerFactory loggerfactory)
          Assigns a logger factory that allows the creation of new loggers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDResolver

public DTDResolver(java.util.ArrayList dtdLocations)

DTDResolver

public DTDResolver(java.util.ArrayList dtdLocations,
                   Logger logger)
Method Detail

resolveEntity

public org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier identifier)
                                                          throws org.apache.xerces.xni.XNIException,
                                                                 java.io.IOException
Specified by:
resolveEntity in interface org.apache.xerces.xni.parser.XMLEntityResolver
Throws:
org.apache.xerces.xni.XNIException
java.io.IOException

getLogger

public Logger getLogger()
Description copied from interface: Loggable
Returns a logger to an component that wants to log things.

Specified by:
getLogger in interface Loggable

getLoggerFactory

public LoggerFactory getLoggerFactory()
Description copied from interface: Loggable
Returns a logger factory that allows the creation of new loggers.

Specified by:
getLoggerFactory in interface Loggable

setLogger

public void setLogger(Logger logger)
Description copied from interface: Loggable
Assigns a logger to an component that wants to log things.

Specified by:
setLogger in interface Loggable
Parameters:
logger - the logger object

setLoggerFactory

public void setLoggerFactory(LoggerFactory loggerfactory)
Description copied from interface: Loggable
Assigns a logger factory that allows the creation of new loggers.

Specified by:
setLoggerFactory in interface Loggable
Parameters:
loggerfactory - the LoggerFactory object to obtain new loggers