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

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

public abstract class GroupDriverSG
extends DriverSGImpl

Base implementation of DriverSG for groups.


Field Summary
protected  ComplexContentSG ccSG
           
protected  GroupSG group
           
protected  JavaSource outerGroup
           
protected  ParticleSG[] particles
           
 
Fields inherited from class org.apache.ws.jaxme.generator.sg.impl.ccsg.DriverSGImpl
ctSG
 
Constructor Summary
protected GroupDriverSG(ComplexTypeSG pType, GroupSG pGroup, JavaSource pOuterGroup, JavaInnerClass pJs)
          Creates a new instance, generating methods for serialization of the given type into the given source file.
protected GroupDriverSG(ComplexTypeSG pType, JavaSource pJs)
          Creates a new instance, generating methods for serialization of the given type into the given source file.
 
Method Summary
protected  void addNames(java.util.List pNames, GroupSG pGroup)
           
protected  java.util.List getNames()
          This method builds a list of the names, which are being used in the element.
protected  JavaSource getOuterGroup()
           
 JavaMethod newMarshalChildsMethod()
          Generates the method JMSAXDriver.marshalChilds(org.apache.ws.jaxme.impl.JMSAXDriverController, org.xml.sax.ContentHandler, Object).
 
Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.ccsg.DriverSGImpl
generate, getJavaSource, getParamController, getParamElement, getParamHandler, getType, newGetAttributesMethod, newGetPreferredPrefixMethod, setParamController, setParamElement, setParamHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ccSG

protected final ComplexContentSG ccSG

group

protected final GroupSG group

particles

protected final ParticleSG[] particles

outerGroup

protected final JavaSource outerGroup
Constructor Detail

GroupDriverSG

protected GroupDriverSG(ComplexTypeSG pType,
                        JavaSource pJs)
                 throws org.xml.sax.SAXException
Creates a new instance, generating methods for serialization of the given type into the given source file.


GroupDriverSG

protected GroupDriverSG(ComplexTypeSG pType,
                        GroupSG pGroup,
                        JavaSource pOuterGroup,
                        JavaInnerClass pJs)
                 throws org.xml.sax.SAXException
Creates a new instance, generating methods for serialization of the given type into the given source file.

Method Detail

getOuterGroup

protected JavaSource getOuterGroup()

addNames

protected void addNames(java.util.List pNames,
                        GroupSG pGroup)
                 throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getNames

protected java.util.List getNames()
                           throws org.xml.sax.SAXException
Description copied from class: DriverSGImpl
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).

Overrides:
getNames in class DriverSGImpl
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
Overrides:
newMarshalChildsMethod in class DriverSGImpl
Throws:
org.xml.sax.SAXException