|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.objectweb.jorm.mi2xml.lib.BasicDomWriter
BasicDomWriter implements the Writer interface. BasicDomWriter generates the .pd file of a Class or a CompositeName object.
| Field Summary | |
static java.lang.String |
XML_INDENT
Default indentation for xml viewer. |
| Constructor Summary | |
BasicDomWriter()
|
|
| 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. |
void |
init(JormConfigurator compilerConfigurator)
Initializes a BasicDomWriter object. |
void |
setLogger(Logger logger)
Defines a logger object. |
void |
setLoggerFactory(LoggerFactory loggerfactory)
Defines the logger factory to obtain new loggers. |
void |
write(MetaObject mo,
TargetHolder holder)
This method first builds the DOMTree of a Class or a CompositeName object and then generates the .pd file by delegation to the XMLSerializer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String XML_INDENT
| Constructor Detail |
public BasicDomWriter()
| Method Detail |
public void init(JormConfigurator compilerConfigurator)
throws PException
init in interface WritercompilerConfigurator - a JormConfigurator object.
PException
public void write(MetaObject mo,
TargetHolder holder)
throws PException
write in interface Writermo - a Class or a CompositeName object.holder - The target holder which allows to create files.
PException - if an error occurs during the generation.public void setLogger(Logger logger)
setLogger in interface Loggablelogger - the logger objectpublic void setLoggerFactory(LoggerFactory loggerfactory)
setLoggerFactory in interface Loggableloggerfactory - The LoggerFactory object to obtain a logger objectpublic Logger getLogger()
Loggable
getLogger in interface Loggablepublic LoggerFactory getLoggerFactory()
Loggable
getLoggerFactory in interface Loggable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||