org.objectweb.speedo.generation.parser.ejb
Class EJBPersistenceParser

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.ejb.EJBPersistenceParser
All Implemented Interfaces:
GeneratorComponent

public class EJBPersistenceParser
extends AbstractParser


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
EJBPersistenceParser()
           
 
Method Summary
protected  java.lang.String getLoggerName()
           
 java.lang.String getTitle()
           
protected  java.lang.Object treatDocument(org.w3c.dom.Node node, java.lang.Object o)
          Create the XML file descriptor.
 
Methods inherited from class org.objectweb.speedo.generation.parser.AbstractParser
getSummary, init, process
 
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

EJBPersistenceParser

public EJBPersistenceParser()
Method Detail

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface GeneratorComponent
Overrides:
getTitle in class AbstractParser
Returns:
a short string (less than 30 characters) representing the title of the component. This string must indicate job of the component.

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 o)
                                  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.
o - default descriptor to return.
Returns:
descriptor.
Throws:
SpeedoException