protected ETypeParameter addETypeParameter(EOperation owner, String name) { ETypeParameter eTypeParameter = ecoreFactory.createETypeParameter(); eTypeParameter.setName(name); owner.getETypeParameters().add(eTypeParameter); return eTypeParameter; }
protected ETypeParameter addETypeParameter(EClassifier owner, String name) { ETypeParameter eTypeParameter = ecoreFactory.createETypeParameter(); eTypeParameter.setName(name); owner.getETypeParameters().add(eTypeParameter); return eTypeParameter; }
protected ETypeParameter addETypeParameter(EClassifier owner, String name) { ETypeParameter eTypeParameter = ecoreFactory.createETypeParameter(); eTypeParameter.setName(name); owner.getETypeParameters().add(eTypeParameter); return eTypeParameter; }
protected ETypeParameter addETypeParameter(EOperation owner, String name) { ETypeParameter eTypeParameter = ecoreFactory.createETypeParameter(); eTypeParameter.setName(name); owner.getETypeParameters().add(eTypeParameter); return eTypeParameter; }
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"))); } } } } }
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */ @Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); EClassifier eClassifier = (EClassifier)object; if (!(object instanceof EEnum) && eClassifier.getInstanceClassName() == eClassifier.getInstanceTypeName() && !"org.eclipse.emf.common.util.Enumerator".equals(eClassifier.getInstanceClassName())) { newChildDescriptors.add (createChildParameter (EcorePackage.Literals.ECLASSIFIER__ETYPE_PARAMETERS, EcoreFactory.eINSTANCE.createETypeParameter())); } }
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add (createChildParameter (EcorePackage.Literals.EOPERATION__ETYPE_PARAMETERS, EcoreFactory.eINSTANCE.createETypeParameter())); newChildDescriptors.add (createChildParameter (EcorePackage.Literals.EOPERATION__EPARAMETERS, EcoreFactory.eINSTANCE.createEParameter())); newChildDescriptors.add (createChildParameter (EcorePackage.Literals.EOPERATION__EGENERIC_EXCEPTIONS, EcoreFactory.eINSTANCE.createEGenericType())); }
.createETypeParameter(); elementToEModelElementMap.put(parameterableElement, eTypeParameter);
ETypeParameter eTypeParameter = EcoreFactory.eINSTANCE.createETypeParameter(); int identifierStart = -1; int identifierLast = -1;
ETypeParameter eTypeParameter = EcoreFactory.eINSTANCE.createETypeParameter(); int identifierStart = -1; int identifierLast = -1;
ETypeParameter eTypeParameter = EcoreFactory.eINSTANCE.createETypeParameter(); String typeParameterName = typeParameter.getAttributeNS(null, "name"); eTypeParameter.setName(typeParameterName);
ETypeParameter eTypeParameter = EcoreFactory.eINSTANCE.createETypeParameter(); String typeParameterName = typeParameter.getAttributeNS(null, "name"); eTypeParameter.setName(typeParameterName);