return particleSG.getMinOccurs() > 0;
}
protected void handleStartOfChildElement(Object pUnmarshallerHandler,
JavaMethod pJm, ParticleSG pParticle) {
ObjectSG oSG = pParticle.getObjectSG();
TypeSG tSG = oSG.getTypeSG();
if (tSG.isComplex()) {
JavaQName elementInterfaceClass = pParticle.getObjectSG().getClassContext().getXMLInterfaceName();
Object[] o, h;
if (oSG.getClassContext().isGlobal()) {
LocalJavaField manager = pJm.newJavaField(JMManager.class);
manager.addLine("getHandler().getJMUnmarshaller().getJAXBContextImpl().getManagerS(",
elementInterfaceClass, ".class)");
o = new Object[]{manager, ".getElementS();"};
h = new Object[]{manager, ".getHandler();"};
} else {
Context context = oSG.getClassContext();
o = new Object[]{" new ", context.getXMLImplementationName(), "()"};
h = new Object[]{" new ", context.getXMLHandlerName(), "()"};
}
LocalJavaField oField = pJm.newJavaField(Object.class);
oField.addLine(o);
LocalJavaField hField = pJm.newJavaField(JMSAXElementParser.class);
hField.addLine(h);
XsQName name = oSG.getName();
pJm.addLine(hField, ".init(", pUnmarshallerHandler, ", ", oField, ", ",
JavaSource.getQuoted(name.getNamespaceURI()), ", ",
JavaSource.getQuoted(name.getLocalName()),
", ", pUnmarshallerHandler, ".getLevel());");
pJm.addLine(hField, ".setAttributes(", getParamAttrs(), ");");