public JavaSource getXMLImplementation(ComplexTypeSG pController) throws SAXException {
final String mName = "getXMLImplementation(JavaQName)";
log.finest(mName, "->", typeSG.getName());
JavaSourceFactory jsf = pController.getTypeSG().getSchema().getJavaSourceFactory();
JavaSource js = jsf.newJavaSource(pController.getClassContext().getXMLImplementationName(), JavaSource.PUBLIC);
js.addImplements(pController.getClassContext().getXMLInterfaceName());
SerializableSG.makeSerializable(pController.getTypeSG().getSchema(), js);
generateProperties(pController, js);
if (!pController.hasSimpleContent()) {
GroupSG groupSG = pController.getComplexContentSG().getGroupSG();
if (groupSG != null) { // Check required, in case the element doesn't have any childs
groupSG.generateXMLImplementationSubclasses(js);
}
}
log.finest(mName, "<-", js.getQName());
return js;
}