|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.jaxme.generator.sg.impl.ccsg.HandlerSGImpl
org.apache.ws.jaxme.generator.sg.impl.ccsg.GroupHandlerSG
An instance of GroupHandlerSG is
responsible for creating an instance of
JMSAXGroupParser,
or JMSAXElementParser.
The ComplexContentSG
creates a GroupHandlerSG for any group,
contained in the element.
| Field Summary | |
protected ComplexContentSG |
ccSG
|
protected GroupSG |
group
|
protected ParticleSG[] |
particles
|
| Fields inherited from class org.apache.ws.jaxme.generator.sg.impl.ccsg.HandlerSGImpl |
ctSG |
| Constructor Summary | |
protected |
GroupHandlerSG(ComplexTypeSG pType,
GroupSG pGroup,
JavaSource pJs)
Creates a new instance, which generates a handler for the group pGroupSG by adding methods and
fields to the Java class pJs. |
protected |
GroupHandlerSG(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 abstract void |
acceptParticle(JavaMethod pJm,
int pNum)
|
void |
generate()
Invokes the various "newFooMethod" methods. |
protected abstract DirectAccessible |
getEndElementState()
|
protected GroupHandlerSG |
getGroupHandlerSG(GroupSG pGroup)
|
protected abstract int |
getState(int pParticleNum)
|
protected JavaField |
getStateField()
|
protected void |
handleStartElementStates(java.lang.Object pUnmarshallerHandler,
JavaMethod pJm,
int pFrom,
int pTo)
|
protected void |
handleStartOfChildElement(java.lang.Object pUnmarshallerHandler,
JavaMethod pJm,
ParticleSG pParticle)
|
protected boolean |
isRequiredParticle(ParticleSG particleSG)
|
JavaMethod |
newAddAttributeMethod()
Creates the handlers method JMSAXElementParser.addAttribute(String, String, String). |
JavaMethod |
newEndElementMethod()
Creates the handlers method JMSAXGroupParser.endElement(String, String, String, Object). |
JavaMethod |
newIsAtomicMethod()
Creates the handlers method JMSAXElementParser.isAtomic(). |
JavaMethod |
newIsEmptyMethod()
Creates the handlers method JMSAXElementParser.isEmpty(). |
protected abstract JavaField |
newStateField()
|
| Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.ccsg.HandlerSGImpl |
createSimpleTypeConversion, getJavaSource, getParamAttrs, getParamLocalName, getParamNamespaceURI, getParamQName, getParamResult, newIsFinishedMethod, newStartElementMethod, setParamAttrs, setParamLocalName, setParamNamespaceURI, setParamQName, setParamResult |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final ComplexContentSG ccSG
protected final GroupSG group
protected final ParticleSG[] particles
| Constructor Detail |
protected GroupHandlerSG(ComplexTypeSG pType,
JavaSource pJs)
throws org.xml.sax.SAXException
pTypeSG by adding methods
and fields to the Java class pJs.
protected GroupHandlerSG(ComplexTypeSG pType,
GroupSG pGroup,
JavaSource pJs)
throws org.xml.sax.SAXException
pGroupSG by adding methods and
fields to the Java class pJs.
| Method Detail |
protected abstract JavaField newStateField()
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected JavaField getStateField()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected GroupHandlerSG getGroupHandlerSG(GroupSG pGroup)
public JavaMethod newAddAttributeMethod()
throws org.xml.sax.SAXException
HandlerSGJMSAXElementParser.addAttribute(String, String, String).
newAddAttributeMethod in interface HandlerSGnewAddAttributeMethod in class HandlerSGImplorg.xml.sax.SAXExceptionprotected boolean isRequiredParticle(ParticleSG particleSG)
protected void handleStartOfChildElement(java.lang.Object pUnmarshallerHandler,
JavaMethod pJm,
ParticleSG pParticle)
protected abstract void acceptParticle(JavaMethod pJm,
int pNum)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void handleStartElementStates(java.lang.Object pUnmarshallerHandler,
JavaMethod pJm,
int pFrom,
int pTo)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected abstract int getState(int pParticleNum)
protected abstract DirectAccessible getEndElementState()
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public JavaMethod newEndElementMethod()
throws org.xml.sax.SAXException
HandlerSGJMSAXGroupParser.endElement(String, String, String, Object).
newEndElementMethod in interface HandlerSGnewEndElementMethod in class HandlerSGImplorg.xml.sax.SAXException
public JavaMethod newIsAtomicMethod()
throws org.xml.sax.SAXException
HandlerSGJMSAXElementParser.isAtomic().
newIsAtomicMethod in interface HandlerSGnewIsAtomicMethod in class HandlerSGImplorg.xml.sax.SAXException
public JavaMethod newIsEmptyMethod()
throws org.xml.sax.SAXException
HandlerSGJMSAXElementParser.isEmpty().
newIsEmptyMethod in interface HandlerSGnewIsEmptyMethod in class HandlerSGImplorg.xml.sax.SAXException
public void generate()
throws org.xml.sax.SAXException
HandlerSG
generate in interface HandlerSGgenerate in class HandlerSGImplorg.xml.sax.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||