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

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.ccsg.HandlerSGImpl
      extended by org.apache.ws.jaxme.generator.sg.impl.ccsg.GroupHandlerSG
          extended by org.apache.ws.jaxme.generator.sg.impl.ccsg.ChoiceHandlerSG
All Implemented Interfaces:
HandlerSG

public class ChoiceHandlerSG
extends GroupHandlerSG

Creates an instance of JMSAXElementParser, or JMSAXGroupParser, which parses a choice group.


Field Summary
 
Fields inherited from class org.apache.ws.jaxme.generator.sg.impl.ccsg.GroupHandlerSG
ccSG, group, outerHandler, particle, particles
 
Fields inherited from class org.apache.ws.jaxme.generator.sg.impl.ccsg.HandlerSGImpl
ctSG
 
Constructor Summary
ChoiceHandlerSG(ComplexTypeSG pType, JavaSource pJs)
          Creates a new instance, which generates a handler for the complex type pTypeSG by adding methods and fields to the Java class pJs.
 
Method Summary
protected  void acceptParticle(JavaMethod pJm, int pNum)
           
protected  DirectAccessible getEndElementState()
           
protected  int getState(int pParticleNum)
           
 JavaMethod newIsFinishedMethod()
          Creates the handlers method JMSAXGroupParser.isFinished().
 JavaMethod newStartElementMethod()
          Creates the handlers method JMSAXGroupParser.startElement(String, String, String, org.xml.sax.Attributes).
protected  JavaField newStateField()
           
 
Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.ccsg.GroupHandlerSG
generate, getGroupHandlerSG, getStateField, handleStartElementStates, handleStartOfChildElement, isRequiredParticle, newAddAttributeMethod, newAddTextMethod, newEndElementMethod, newIsAtomicMethod, newIsEmptyMethod, newIsMixedMethod
 
Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.ccsg.HandlerSGImpl
createSimpleTypeConversion, getJavaSource, getParamAttrs, getParamLocalName, getParamNamespaceURI, getParamQName, getParamResult, setParamAttrs, setParamLocalName, setParamNamespaceURI, setParamQName, setParamResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoiceHandlerSG

public ChoiceHandlerSG(ComplexTypeSG pType,
                       JavaSource pJs)
                throws org.xml.sax.SAXException
Creates a new instance, which generates a handler for the complex type pTypeSG by adding methods and fields to the Java class pJs.

Throws:
org.xml.sax.SAXException
Method Detail

getState

protected int getState(int pParticleNum)
Specified by:
getState in class GroupHandlerSG

acceptParticle

protected void acceptParticle(JavaMethod pJm,
                              int pNum)
                       throws org.xml.sax.SAXException
Specified by:
acceptParticle in class GroupHandlerSG
Throws:
org.xml.sax.SAXException

newStartElementMethod

public JavaMethod newStartElementMethod()
                                 throws org.xml.sax.SAXException
Description copied from interface: HandlerSG
Creates the handlers method JMSAXGroupParser.startElement(String, String, String, org.xml.sax.Attributes).

Specified by:
newStartElementMethod in interface HandlerSG
Overrides:
newStartElementMethod in class HandlerSGImpl
Throws:
org.xml.sax.SAXException

getEndElementState

protected DirectAccessible getEndElementState()
                                       throws org.xml.sax.SAXException
Specified by:
getEndElementState in class GroupHandlerSG
Throws:
org.xml.sax.SAXException

newIsFinishedMethod

public JavaMethod newIsFinishedMethod()
                               throws org.xml.sax.SAXException
Description copied from interface: HandlerSG
Creates the handlers method JMSAXGroupParser.isFinished().

Specified by:
newIsFinishedMethod in interface HandlerSG
Overrides:
newIsFinishedMethod in class GroupHandlerSG
Throws:
org.xml.sax.SAXException

newStateField

protected JavaField newStateField()
                           throws org.xml.sax.SAXException
Specified by:
newStateField in class GroupHandlerSG
Throws:
org.xml.sax.SAXException