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

Class ChoiceHandlerSG

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()
JavaMethod
newStartElementMethod()
protected JavaField
newStateField()

Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.ccsg.GroupHandlerSG

acceptParticle, generate, getEndElementState, getGroupHandlerSG, getState, getStateField, handleStartElementStates, handleStartOfChildElement, isRequiredParticle, newAddAttributeMethod, newAddTextMethod, newEndElementMethod, newIsAtomicMethod, newIsEmptyMethod, newIsMixedMethod, newStateField

Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.ccsg.HandlerSGImpl

createSimpleTypeConversion, generate, getJavaSource, getParamAttrs, getParamLocalName, getParamNamespaceURI, getParamQName, getParamResult, newAddAttributeMethod, newEndElementMethod, newIsAtomicMethod, newIsEmptyMethod, newIsFinishedMethod, newStartElementMethod, setParamAttrs, setParamLocalName, setParamNamespaceURI, setParamQName, setParamResult

Constructor Details

ChoiceHandlerSG

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

Method Details

acceptParticle

protected void acceptParticle(JavaMethod pJm,
                              int pNum)
            throws SAXException
Overrides:
acceptParticle in interface GroupHandlerSG

getEndElementState

protected DirectAccessible getEndElementState()
            throws SAXException
Overrides:
getEndElementState in interface GroupHandlerSG

getState

protected int getState(int pParticleNum)
Overrides:
getState in interface GroupHandlerSG

newIsFinishedMethod

public JavaMethod newIsFinishedMethod()
            throws SAXException
Specified by:
newIsFinishedMethod in interface HandlerSG
Overrides:
newIsFinishedMethod in interface HandlerSGImpl

newStartElementMethod

public JavaMethod newStartElementMethod()
            throws SAXException
Specified by:
newStartElementMethod in interface HandlerSG
Overrides:
newStartElementMethod in interface HandlerSGImpl

newStateField

protected JavaField newStateField()
            throws SAXException
Overrides:
newStateField in interface GroupHandlerSG