protected void changeReference(EReference eReference) { if (isReconciling) return; super.changeReference(eReference); Element theElement = getElement(); if (theElement != null) { if (eReference == null || eReference == WSDLPackage.Literals.PART__TYPE_DEFINITION) { XSDTypeDefinition typeDefinition = getTypeDefinition(); if (typeDefinition != null) { niceSetAttributeURIValue(theElement, WSDLConstants.TYPE_ATTRIBUTE, typeDefinition.getURI()); } } if (eReference == null || eReference == WSDLPackage.Literals.PART__ELEMENT_DECLARATION) { XSDElementDeclaration elementDecl = getElementDeclaration(); if (elementDecl != null) { niceSetAttributeURIValue(theElement, WSDLConstants.ELEMENT_ATTRIBUTE, elementDecl.getURI()); } } } }
public void validateNoDuplicates(String componentNoun, EList<? extends XSDNamedComponent> xsdNamedComponents) { String name = null; String targetNamespace = null; for (XSDNamedComponent xsdNamedComponent : xsdNamedComponents) { if (xsdNamedComponent.hasNameAndTargetNamespace(name, targetNamespace)) { getDiagnosticTarget(xsdNamedComponent).createDiagnostic (XSDDiagnosticSeverity.ERROR_LITERAL, "coss-schema.2", XSDPlugin.INSTANCE.getString(componentNoun), xsdNamedComponent.getURI()); } name = xsdNamedComponent.getName(); targetNamespace = xsdNamedComponent.getTargetNamespace(); } }
public void validateNoDuplicates(String componentNoun, EList<? extends XSDNamedComponent> xsdNamedComponents) { String name = null; String targetNamespace = null; for (XSDNamedComponent xsdNamedComponent : xsdNamedComponents) { if (xsdNamedComponent.hasNameAndTargetNamespace(name, targetNamespace)) { getDiagnosticTarget(xsdNamedComponent).createDiagnostic (XSDDiagnosticSeverity.ERROR_LITERAL, "coss-schema.2", XSDPlugin.INSTANCE.getString(componentNoun), xsdNamedComponent.getURI()); } name = xsdNamedComponent.getName(); targetNamespace = xsdNamedComponent.getTargetNamespace(); } }