org.objectweb.speedo.generation.parser.jdo
Class JDO2Parser
java.lang.Object
org.objectweb.speedo.generation.lib.AbstractGeneratorComponent
org.objectweb.speedo.generation.parser.AbstractParser
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDO2Parser
public JDO2Parser()
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