pComplexTypeSG.getComplexTypeSG().addAttributeSG(attributeSG);
}
public Object newObjectSG(SGFactory pFactory, XSElement pElement) throws SAXException {
ObjectSGChain chain = (ObjectSGChain) super.newObjectSG(pFactory, pElement);
chain = new ObjectSGChainImpl(chain){
public JavaSource getXMLImplementation(ObjectSG pController) throws SAXException {
JavaSource result = super.getXMLImplementation(pController);
JavaQName[] interfaces = result.getImplements();
boolean done = false;
result.clearImplements();