org.objectweb.speedo.generation.parser.jdo
Class JDO2Parser

java.lang.Object
  extended by org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
      extended by org.objectweb.speedo.generation.parser.AbstractParser
          extended by org.objectweb.speedo.generation.parser.jdo.JDO2Parser
All Implemented Interfaces:
GeneratorComponent

public class JDO2Parser
extends AbstractParser

This class is a parser of the JDO2 persistent descriptor. It includes the parsing the O/R mapping.

Author:
S.Chassande-Barrioz

Field Summary
 
Fields inherited from class org.objectweb.speedo.generation.parser.AbstractParser
LOGGER_NAME
 
Fields inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
debug, logger, personality, scp
 
Constructor Summary
JDO2Parser()
           
 
Method Summary
protected  java.lang.String getLoggerName()
           
 void process()
          Do the job of the component.
protected  java.lang.Object treatDocument(org.w3c.dom.Node node, java.lang.Object mo)
          Create the XML file descriptor.
protected  java.lang.Object treatJdoNode(org.w3c.dom.Node jdoNode, SpeedoXMLDescriptor xmlDesc)
           
 
Methods inherited from class org.objectweb.speedo.generation.parser.AbstractParser
getSummary, getTitle, init
 
Methods inherited from class org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
getLogger, getSpeedoCompilerParameter, setLogger, setSpeedoCompilerParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDO2Parser

public JDO2Parser()
Method Detail

process

public void process()
             throws SpeedoException
Description copied from interface: GeneratorComponent
Do the job of the component.

Specified by:
process in interface GeneratorComponent
Overrides:
process in class AbstractParser
Throws:
SpeedoException - if the component initialization fails

getLoggerName

protected java.lang.String getLoggerName()
Specified by:
getLoggerName in class AbstractParser

treatDocument

protected java.lang.Object treatDocument(org.w3c.dom.Node node,
                                         java.lang.Object mo)
                                  throws SpeedoException
Description copied from class: AbstractParser
Create the XML file descriptor. It throws an exception if the XML file doesn't follow the relevant dtd.

Specified by:
treatDocument in class AbstractParser
Parameters:
node - root node of the descriptor which will be return.
mo - default descriptor to return.
Returns:
descriptor.
Throws:
SpeedoException

treatJdoNode

protected java.lang.Object treatJdoNode(org.w3c.dom.Node jdoNode,
                                        SpeedoXMLDescriptor xmlDesc)
                                 throws SpeedoException
Throws:
SpeedoException