concreteComp.updateElement(); try xsdConcreteComponent.updateElement(); xsdConcreteComponent.updateElement();
if (element == null) xsdConcreteComponent./*{@link XSDConcreteComponent#updateElement */updateElement/*}*/(); element = xsdConcreteComponent.getElement();
if (element == null) xsdConcreteComponent./*{@link XSDConcreteComponent#updateElement */updateElement/*}*/(); element = xsdConcreteComponent.getElement();
public Element createElement() { if (schema == null) // kb Note: This case is not supposed to happen. { // cs ... why do we do this if its not supposed to happen? // Is there a scenario where this is a usefull fallback? // Under what conditions does this code get executed (i.e. why would schema == null)? schema = XSDFactory.eINSTANCE.createXSDSchema(); schema.setSchemaForSchemaQNamePrefix("xsd"); schema.setTargetNamespace("http://tempuri.org/"); java.util.Map qNamePrefixToNamespaceMap = schema.getQNamePrefixToNamespaceMap(); qNamePrefixToNamespaceMap.put("", schema.getTargetNamespace()); qNamePrefixToNamespaceMap.put(schema.getSchemaForSchemaQNamePrefix(), org.eclipse.xsd.util.XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001); adopt(schema); schema.updateElement(true); return schema.getElement(); } else { element = schema.getElement(); if (element == null) { adopt(schema); schema.updateElement(true); element = schema.getElement(); } return element; } }
protected void adoptContent(EReference eReference, XSDConcreteComponent xsdConcreteComponent) { if (isReconciling) { if (xsdConcreteComponent.getElement() != null) { xsdConcreteComponent.elementChanged(xsdConcreteComponent.getElement()); } } else { Element childElement = xsdConcreteComponent.getElement(); if (getElement() != null && (childElement == null || childElement.getParentNode() == null)) { if (childElement != null && childElement.getOwnerDocument() != getElement().getOwnerDocument()) { xsdConcreteComponent.setElement(null); childElement = null; } handleElementForAdopt(eReference, xsdConcreteComponent); xsdConcreteComponent.updateElement(); } } XSDSchema xsdSchema = getSchema(); if (xsdSchema != null) { ((XSDConcreteComponentImpl)xsdConcreteComponent).adoptBy(xsdSchema); } }
protected void adoptContent(EReference eReference, XSDConcreteComponent xsdConcreteComponent) { if (isReconciling) { if (xsdConcreteComponent.getElement() != null) { xsdConcreteComponent.elementChanged(xsdConcreteComponent.getElement()); } } else { Element childElement = xsdConcreteComponent.getElement(); if (getElement() != null && (childElement == null || childElement.getParentNode() == null)) { if (childElement != null && childElement.getOwnerDocument() != getElement().getOwnerDocument()) { xsdConcreteComponent.setElement(null); childElement = null; } handleElementForAdopt(eReference, xsdConcreteComponent); xsdConcreteComponent.updateElement(); } } XSDSchema xsdSchema = getSchema(); if (xsdSchema != null) { ((XSDConcreteComponentImpl)xsdConcreteComponent).adoptBy(xsdSchema); } }
container.updateElement(); return; xsdConcreteComponent.updateElement(); xsdConcreteComponent.updateElement();
container.updateElement(); return; xsdConcreteComponent.updateElement(); xsdConcreteComponent.updateElement();
protected void changeAttribute(EAttribute eAttribute) { if (isReconciling) return; // TODO... revist this block of code // if (eAttribute == null || eAttribute == WSDLPackage.Literals.XSD_SCHEMA_EXTENSIBILITY_ELEMENT__SCHEMA) { // We got a new schema so re-parent it. // cs... are we really doing the right thing here? this seems strange if (schema != null) { if ((schema.getElement() == null && getElement() == null) || (schema.getElement() != getElement())) { schema.setDocument(null); schema.setElement(null); adopt(schema); schema.updateElement(); } } } else if (eAttribute == WSDLPackage.Literals.WSDL_ELEMENT__ELEMENT) { setSchema(createSchema(element)); // element is not null } } } //XSDSchemaExtensibilityElementImpl
public void write(Object value, OutputStream output, Operation describeFeatureType) throws IOException { VersionedDescribeResults results = (VersionedDescribeResults) value; // create the schema DescribeFeatureTypeType req = (DescribeFeatureTypeType) describeFeatureType .getParameters()[0]; String proxifiedBaseUrl = RequestUtils.proxifiedBaseURL(req .getBaseUrl(), wfs.getGeoServer().getProxyBaseUrl()); FeatureTypeSchemaBuilder builder = null; if (results.isVersioned()) { builder = new VersionedSchemaBuilder(wfs, catalog, resourceLoader, configuration); } else { builder = new FeatureTypeSchemaBuilder.GML3(wfs, catalog, resourceLoader); } XSDSchema schema = builder.build(results.getFeatureTypeInfo(), proxifiedBaseUrl); // serialize schema.updateElement(); XSDResourceImpl.serialize(output, schema.getElement()); }