org.apache.ws.jaxme.generator.sg.impl.ccsg
Class DriverSGImpl

java.lang.Object
  extended byorg.apache.ws.jaxme.generator.sg.impl.ccsg.DriverSGImpl
All Implemented Interfaces:
DriverSG
Direct Known Subclasses:
EmptyElementDriverSG, GroupDriverSG

public abstract class DriverSGImpl
extends java.lang.Object
implements DriverSG

Base implementation of DriverSG, for derivation of subclasses.


Field Summary
protected  ComplexTypeSG ctSG
           
 
Constructor Summary
protected DriverSGImpl(ComplexTypeSG pType, JavaSource pJs)
           
 
Method Summary
 void generate()
          Invokes the various newFooMethod methods.
 JavaSource getJavaSource()
          Returns the class being created.
protected  java.util.List getNames()
          This method builds a list of the names, which are being used in the element.
protected  Parameter getParamController()
          Returns the pController parameter for the method JMSAXDriver.marshalChilds(JMSAXDriverController, ContentHandler, Object).
protected  Parameter getParamElement()
          Returns the pObject parameter for the method JMSAXDriver.marshalChilds(JMSAXDriverController, ContentHandler, Object).
protected  Parameter getParamHandler()
          Returns the pHandler parameter for the method JMSAXDriver.marshalChilds(JMSAXDriverController, ContentHandler, Object).
 ComplexTypeSG getType()
          Returns the type being serialized.
 JavaMethod newGetAttributesMethod()
          Generates the method JMSAXDriver.getAttributes(org.apache.ws.jaxme.impl.JMSAXDriverController, Object).
 JavaMethod newGetPreferredPrefixMethod()
          Generates the method JMSAXDriver.getPreferredPrefix(String).
 JavaMethod newMarshalChildsMethod()
          Generates the method JMSAXDriver.marshalChilds(org.apache.ws.jaxme.impl.JMSAXDriverController, org.xml.sax.ContentHandler, Object).
protected  void setParamController(Parameter pController)
          Sets the pController parameter for the method JMSAXDriver.marshalChilds(JMSAXDriverController, ContentHandler, Object).
protected  void setParamElement(Parameter pElement)
          Sets the pElement parameter for the method JMSAXDriver.marshalChilds(JMSAXDriverController, ContentHandler, Object).
protected  void setParamHandler(Parameter pHandler)
          Sets the pHandler parameter for the method JMSAXDriver.marshalChilds(JMSAXDriverController, ContentHandler, Object).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctSG

protected final ComplexTypeSG ctSG
Constructor Detail

DriverSGImpl

protected DriverSGImpl(ComplexTypeSG pType,
                       JavaSource pJs)
Method Detail

getParamController

protected Parameter getParamController()
Returns the pController parameter for the method JMSAXDriver.marshalChilds(JMSAXDriverController, ContentHandler, Object).


setParamController

protected void setParamController(Parameter pController)
Sets the pController parameter for the method JMSAXDriver.marshalChilds(JMSAXDriverController, ContentHandler, Object).


getParamHandler

protected Parameter getParamHandler()
Returns the pHandler parameter for the method JMSAXDriver.marshalChilds(JMSAXDriverController, ContentHandler, Object).


setParamHandler

protected void setParamHandler(Parameter pHandler)
Sets the pHandler parameter for the method JMSAXDriver.marshalChilds(JMSAXDriverController, ContentHandler, Object).


getParamElement

protected Parameter getParamElement()
Returns the pObject parameter for the method JMSAXDriver.marshalChilds(JMSAXDriverController, ContentHandler, Object).


setParamElement

protected void setParamElement(Parameter pElement)
Sets the pElement parameter for the method JMSAXDriver.marshalChilds(JMSAXDriverController, ContentHandler, Object).


getJavaSource

public JavaSource getJavaSource()
Description copied from interface: DriverSG
Returns the class being created.

Specified by:
getJavaSource in interface DriverSG

getType

public ComplexTypeSG getType()
Description copied from interface: DriverSG
Returns the type being serialized.

Specified by:
getType in interface DriverSG

newGetAttributesMethod

public JavaMethod newGetAttributesMethod()
                                  throws org.xml.sax.SAXException
Description copied from interface: DriverSG
Generates the method JMSAXDriver.getAttributes(org.apache.ws.jaxme.impl.JMSAXDriverController, Object).

Specified by:
newGetAttributesMethod in interface DriverSG
Throws:
org.xml.sax.SAXException

newMarshalChildsMethod

public JavaMethod newMarshalChildsMethod()
                                  throws org.xml.sax.SAXException
Description copied from interface: DriverSG
Generates the method JMSAXDriver.marshalChilds(org.apache.ws.jaxme.impl.JMSAXDriverController, org.xml.sax.ContentHandler, Object).

Specified by:
newMarshalChildsMethod in interface DriverSG
Throws:
org.xml.sax.SAXException

generate

public void generate()
              throws org.xml.sax.SAXException
Description copied from interface: DriverSG
Invokes the various newFooMethod methods.

Specified by:
generate in interface DriverSG
Throws:
org.xml.sax.SAXException

getNames

protected java.util.List getNames()
                           throws org.xml.sax.SAXException
This method builds a list of the names, which are being used in the element. The list is used for generating the method JMSAXDriver.getPreferredPrefix(String).

Throws:
org.xml.sax.SAXException

newGetPreferredPrefixMethod

public JavaMethod newGetPreferredPrefixMethod()
                                       throws org.xml.sax.SAXException
Description copied from interface: DriverSG
Generates the method JMSAXDriver.getPreferredPrefix(String).

Specified by:
newGetPreferredPrefixMethod in interface DriverSG
Throws:
org.xml.sax.SAXException