org.objectweb.jorm.mi2xml.api
Interface Writer

All Known Implementing Classes:
BasicDomWriter

public interface Writer

Writer generates Jorm specification files (.pd files) from a Class or a CompositeName object.


Method Summary
 void init(JormConfigurator compilerConfigurator)
          Initializes a BasicDomWriter object.
 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.
 

Method Detail

init

public void init(JormConfigurator compilerConfigurator)
          throws PException
Initializes a BasicDomWriter object.

Parameters:
compilerConfigurator - a JormConfiguratorImpl object.
Throws:
PException

write

public void write(MetaObject mo,
                  TargetHolder holder)
           throws PException
This method first builds the DOMTree of a Class or a CompositeName object and then generates the .pd file by delegation to the XMLSerializer.

Parameters:
mo - a Class or a CompositeName object.
holder - The target holder which allows to create files.
Throws:
PException - if an error occurs during the generation.