void handleTypeArguments(XSDTypeDefinition xsdTypeDefinition, EClassifier eClassifier) { XSDAnnotation xsdAnnotation = xsdTypeDefinition.getAnnotation(); if (xsdAnnotation != null) { List<Element> applicationInformationList = xsdAnnotation.getApplicationInformation(EcorePackage.eNS_URI); for (Element applicationInformation : applicationInformationList) { if ("typeParameters".equals(applicationInformation.getAttributeNS(EcorePackage.eNS_URI, "key"))) { for (Element typeParameter : getElements(applicationInformation, "typeParameter")) { ETypeParameter eTypeParameter = EcoreFactory.eINSTANCE.createETypeParameter(); String typeParameterName = typeParameter.getAttributeNS(null, "name"); eTypeParameter.setName(typeParameterName); eClassifier.getETypeParameters().add(eTypeParameter); eTypeParameter.getEBounds().addAll(getGenericTypes(xsdTypeDefinition, typeParameter, eClassifier, typeParameter.getAttributeNS(null, "bounds"))); } } } } }
void handleTypeArguments(XSDTypeDefinition xsdTypeDefinition, EClassifier eClassifier) { XSDAnnotation xsdAnnotation = xsdTypeDefinition.getAnnotation(); if (xsdAnnotation != null) { List<Element> applicationInformationList = xsdAnnotation.getApplicationInformation(EcorePackage.eNS_URI); for (Element applicationInformation : applicationInformationList) { if ("typeParameters".equals(applicationInformation.getAttributeNS(EcorePackage.eNS_URI, "key"))) { for (Element typeParameter : getElements(applicationInformation, "typeParameter")) { ETypeParameter eTypeParameter = EcoreFactory.eINSTANCE.createETypeParameter(); String typeParameterName = typeParameter.getAttributeNS(null, "name"); eTypeParameter.setName(typeParameterName); eClassifier.getETypeParameters().add(eTypeParameter); eTypeParameter.getEBounds().addAll(getGenericTypes(xsdTypeDefinition, typeParameter, eClassifier, typeParameter.getAttributeNS(null, "bounds"))); } } } } }
if ((xsdAnnotation = xsdTypeDefinition.getAnnotation()) == null)
if ((xsdAnnotation = xsdTypeDefinition.getAnnotation()) == null)
xsdAnnotation = xsdComp.getAnnotation(); if (createIfNotExist && xsdAnnotation == null)