private void elementParticle(GroupSG pGroupSG, ParticleSG pParticle) throws SAXException {
if (isInheritedParticle(pParticle)) {
return;
}
final JavaSource pJs = this.js;
final PropertySG elementSG = pParticle.getPropertySG();
if (isMixed) {
if (!pParticle.getObjectSG().getTypeSG().isComplex()) {
JavaQName qName = GroupUtil.getContentClass(pGroupSG, pParticle, pJs.getQName());
JavaSource js;
if (qName.isInnerClass()) {
js = pJs.newJavaInnerClass(qName.getInnerClassName(), JavaSource.PUBLIC);
if (!pJs.isInterface()) {
js.setStatic(true);
}
} else {
js = pJs.getFactory().newJavaSource(qName, JavaSource.PUBLIC);
}
if (pJs.isInterface()) {
js.setType(JavaSource.INTERFACE);
} else {
js.addImplements(GroupUtil.getContentClass(pGroupSG, pParticle, ct.getClassContext().getXMLInterfaceName()));
}
PropertySGChain chain = ((PropertySGImpl) elementSG).getHeadOfChain();
PropertySGChain head = new PropertySGChainImpl(chain){
public String getXMLFieldName(PropertySG pController) throws SAXException {
return "_value";
}
public String getPropertyName(PropertySG pController) throws SAXException {
return "value";
}
};
PropertySGImpl pSG = new PropertySGImpl(head);
pSG.generate(js);
}
} else {
elementSG.generate(pJs);
}
ObjectSG oSG = pParticle.getObjectSG();
TypeSG typeSG = oSG.getTypeSG();
if (!typeSG.isGlobalType() && !typeSG.isGlobalClass() && typeSG.isComplex()) {