public class ChoiceHandlerSG extends GroupHandlerSG
JMSAXElementParser,
or JMSAXGroupParser,
which parses a choice group.ccSG, group, outerHandler, particle, particlesctSG| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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() |
generate, getGroupHandlerSG, getStateField, handleStartElementStates, handleStartOfChildElement, isRequiredParticle, newAddAttributeMethod, newAddTextMethod, newEndElementMethod, newIsAtomicMethod, newIsEmptyMethod, newIsMixedMethodcreateSimpleTypeConversion, getJavaSource, getParamAttrs, getParamLocalName, getParamNamespaceURI, getParamQName, getParamResult, setParamAttrs, setParamLocalName, setParamNamespaceURI, setParamQName, setParamResultpublic ChoiceHandlerSG(ComplexTypeSG pType, JavaSource pJs) throws org.xml.sax.SAXException
pTypeSG by adding methods
and fields to the Java class pJs.org.xml.sax.SAXExceptionprotected int getState(int pParticleNum)
getState in class GroupHandlerSGprotected void acceptParticle(JavaMethod pJm, int pNum) throws org.xml.sax.SAXException
acceptParticle in class GroupHandlerSGorg.xml.sax.SAXExceptionpublic JavaMethod newStartElementMethod() throws org.xml.sax.SAXException
HandlerSGJMSAXGroupParser.startElement(String, String, String, org.xml.sax.Attributes).newStartElementMethod in interface HandlerSGnewStartElementMethod in class HandlerSGImplorg.xml.sax.SAXExceptionprotected DirectAccessible getEndElementState() throws org.xml.sax.SAXException
getEndElementState in class GroupHandlerSGorg.xml.sax.SAXExceptionpublic JavaMethod newIsFinishedMethod() throws org.xml.sax.SAXException
HandlerSGJMSAXGroupParser.isFinished().newIsFinishedMethod in interface HandlerSGnewIsFinishedMethod in class GroupHandlerSGorg.xml.sax.SAXExceptionprotected JavaField newStateField() throws org.xml.sax.SAXException
newStateField in class GroupHandlerSGorg.xml.sax.SAXException