|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.xml2mi.lib.ParserHelper
This class is a common helper between generic and specific parsers.
Field Summary | |
protected Logger |
logger
a simple logger to log |
protected LoggerFactory |
loggerFactory
a logger factory to create other loggers if needed |
protected java.util.Hashtable |
motable
This structure contains Class and CompositeName objects. |
Constructor Summary | |
ParserHelper()
|
Method Summary | |
protected NameDef |
getIdNameDef(ClassMapping classMapping,
java.lang.String linkend)
|
protected NameDef |
getIdNameDef(Class currentClass,
java.lang.String linkend)
Returns a NameDef object given a NameDef name (name) and possibly the full qualified class name (fqcn) where it is defined. |
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. |
void |
setLogger(Logger logger)
Defines a logger object. |
void |
setLoggerFactory(LoggerFactory loggerfactory)
Defines the logger factory to obtain new loggers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Hashtable motable
protected Logger logger
protected LoggerFactory loggerFactory
Constructor Detail |
public ParserHelper()
Method Detail |
protected NameDef getIdNameDef(Class currentClass, java.lang.String linkend)
linkend
- a String object whose structure is defined as follows: /fqcn/name or /fqcn or name
protected NameDef getIdNameDef(ClassMapping classMapping, java.lang.String linkend)
public void setLogger(Logger logger)
setLogger
in interface Loggable
logger
- the logger objectpublic void setLoggerFactory(LoggerFactory loggerfactory)
setLoggerFactory
in interface Loggable
loggerfactory
- The LoggerFactory object to obtain a logger objectpublic Logger getLogger()
Loggable
getLogger
in interface Loggable
public LoggerFactory getLoggerFactory()
Loggable
getLoggerFactory
in interface Loggable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |