public void visitAttributeDeclaration(XSDAttributeDeclaration attr) { super.visitAttributeDeclaration(attr); XSDTypeDefinition type = attr.getType(); if (type != null) { String ns = type.getTargetNamespace(); if (ns == null) ns = ""; // if (ns.equals(xsdSchema.getSchemaForSchemaNamespace())) if (ns.equals(XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001)) { Element domElement = attr.getElement(); if (domElement != null && domElement instanceof IDOMNode) { Attr typeAttr = domElement.getAttributeNode(XSDConstants.TYPE_ATTRIBUTE); if (typeAttr != null) { attr.getElement().setAttribute(XSDConstants.TYPE_ATTRIBUTE, getNewQName(type, type.getName(), newPrefix)); } } } } } }
attrRef.getElement().setAttribute(XSDConstants.REF_ATTRIBUTE, qname);
XSDAttributeDeclaration xsdAttributeDeclaration = xsdAttributeUse.getAttributeDeclaration(); xsdAnnotations.add(xsdAttributeDeclaration.getAnnotation()); elements.add(xsdAttributeDeclaration.getElement()); append = false;
XSDAttributeDeclaration xsdAttributeDeclaration = xsdAttributeUse.getAttributeDeclaration(); xsdAnnotations.add(xsdAttributeDeclaration.getAnnotation()); elements.add(xsdAttributeDeclaration.getElement()); append = false;
Element element = xsdAttribute.getElement(); if (element != null)
usageCombo.setEnabled(!xsdAttribute.isGlobal()); Element element = xsdAttribute.getElement(); boolean hasUseAttribute = false; if (element != null)
theAttributeDeclaration.getLexicalValue() != null && (getConstraint() != XSDConstraint.FIXED_LITERAL || theTypeDefinition != null && !theTypeDefinition.equalLiterals(theAttributeDeclaration.getElement(), theAttributeDeclaration.getLexicalValue(), theElement, getLexicalValue())))
if (referenceType == null && xsdAttributeDeclaration != null) referenceType = getGenericType(xsdAttributeDeclaration, xsdAttributeDeclaration.getElement(), eClass, getEcoreAttribute(xsdAttributeDeclaration, "reference"));
if (referenceType == null && xsdAttributeDeclaration != null) referenceType = getGenericType(xsdAttributeDeclaration, xsdAttributeDeclaration.getElement(), eClass, getEcoreAttribute(xsdAttributeDeclaration, "reference"));