public XJCCMElementInfoOrigin(CElementInfo source) { super(source); component = source.getSchemaComponent() != null ? source .getSchemaComponent() : source.getProperty() .getSchemaComponent(); }
QName name = elementInfo.getElementName(); XSComponent elementDecl; if (elementInfo.getSchemaComponent() != null) { // it's strange but elements seem not to have this filled-in... elementDecl = elementInfo.getSchemaComponent(); } else { elementDecl = schemaSet.getElementDecl(name.getNamespaceURI(), name.getLocalPart());