@Override public void attached(EObject eObject) { super.attached(eObject); if (eObject instanceof XSDSchema) { if (attachedSchemas != null) { attachedSchemas.add((XSDSchema)eObject); } else if (!(eObject instanceof XSDSchemaImpl) || ((XSDSchemaImpl)eObject).getPendingSchemaLocation() == null) { ((XSDSchema)eObject).setSchemaLocation(getURI().toString()); } } }
@Override public void attached(EObject eObject) { super.attached(eObject); if (eObject instanceof XSDSchema) { if (attachedSchemas != null) { attachedSchemas.add((XSDSchema)eObject); } else if (!(eObject instanceof XSDSchemaImpl) || ((XSDSchemaImpl)eObject).getPendingSchemaLocation() == null) { ((XSDSchema)eObject).setSchemaLocation(getURI().toString()); } } }
schema.setSchemaLocation(resource.getURI().toString());
XSDSchema schema = el.getSchema(); if (schema != null) schema.setSchemaLocation(getURI().toString());
for (XSDSchema xsdSchema : previouslyAttachedSchemas) xsdSchema.setSchemaLocation(schemaLocation);
for (XSDSchema xsdSchema : previouslyAttachedSchemas) xsdSchema.setSchemaLocation(schemaLocation);
public void eNotify(Notification msg) { super.eNotify(msg); // cs.. if we've added an XSDSchemaExtensibilityElementImpl and the Types object is already attached // to a resource we need to set the schemaLocation for the inline schema. // If not yet attached to a resource, the schemaLocation's will be set via WSDLResourceImpl.attached(EObject o) // if (msg.getFeature() == WSDLPackage.Literals.EXTENSIBLE_ELEMENT__EEXTENSIBILITY_ELEMENTS && msg.getEventType() == Notification.ADD) { if (msg.getNewValue() instanceof XSDSchemaExtensibilityElementImpl) { XSDSchemaExtensibilityElementImpl ee = (XSDSchemaExtensibilityElementImpl)msg.getNewValue(); if (ee.getSchema() != null && ee.getSchema().eResource() != null) { ee.getSchema().setSchemaLocation(ee.getSchema().eResource().getURI().toString()); } } } }