public void run() { for (GenFeature genFeature : ((GenClass)genBase).getAllGenFeatures()) { if (literal.equals(genFeature.getName())) { genBase.eSet(eStructuralFeature, genFeature); break; } } } });
public CollidingGenOperationFilter() { GenClass extendsClass = getClassExtendsGenClass(); if (extendsClass != null) { extendsGenClassOperations = extendsClass.getAllGenOperations(); extendsGenClassFeatures = extendsClass.getAllGenFeatures(); } else { extendsGenClassOperations = Collections.emptyList(); extendsGenClassFeatures = Collections.emptyList(); } }
public List<GenFeature> getKeys() { List<GenFeature> result = new ArrayList<GenFeature>(); for (EAttribute eAttribute : ((EReference)getEcoreFeature()).getEKeys()) { GenClass genClass = getTypeGenClass(); for (GenFeature genFeature : genClass.getAllGenFeatures()) { if (genFeature.getEcoreFeature() == eAttribute) { result.add(genFeature); } } } return result; }
protected int countCreateChildIcons(GenPackage genPackage) { int result = 0; GenModel genModel = genPackage.getGenModel(); if (genModel.isCreationCommands() && genModel.isCreationIcons() && genPackage.isChildCreationExtenders()) { for (Map.Entry<GenPackage, Map<GenClass, List<GenClass.ChildCreationData>>> packageEntry : genPackage.getExtendedChildCreationData().entrySet()) { for (Map.Entry<GenClass, List<GenClass.ChildCreationData>> classEntry : packageEntry.getValue().entrySet()) { for (GenClass.ChildCreationData childCreationData : classEntry.getValue()) { if (childCreationData.createClassifier instanceof GenClass && (childCreationData.delegatedFeature == null || classEntry.getKey().getAllGenFeatures().contains(childCreationData.delegatedFeature))) { ++result; } } } } } return result; }
public List<GenFeature> getKeys() { List<GenFeature> result = new ArrayList<GenFeature>(); for (EAttribute eAttribute : ((EReference)getEcoreFeature()).getEKeys()) { GenClass genClass = getTypeGenClass(); for (GenFeature genFeature : genClass.getAllGenFeatures()) { if (genFeature.getEcoreFeature() == eAttribute) { result.add(genFeature); } } } return result; }
if (baseGenClass != null && !baseGenClass.getAllGenFeatures().contains(childCreationData.createFeature))
classEntry.getKey().getAllGenFeatures().contains(childCreationData.delegatedFeature)))
new Runnable() { public void run() { GenClass classExtendsGenClass = genClass.getClassExtendsGenClass(); List<GenFeature> classExtendsAllGenFeatures = classExtendsGenClass == null? Collections.<GenFeature>emptyList() : classExtendsGenClass.getAllGenFeatures(); for (GenFeature genFeature : genClass.getReifiedGenFeatures()) { if (genModel.isArrayAccessors() && genFeature.isListType() && !genFeature.isFeatureMapType() && !genFeature.isMapType()) { String arrayElementType = genFeature.getArrayItemType(genClass);
stringBuffer.append(genClass.getInterfaceName()); stringBuffer.append(TEXT_75); for (GenFeature genFeature : genClass.getAllGenFeatures()) { String name = extendedMetaData.getName(genFeature.getEcoreFeature()); if ((elements.contains(genFeature.getEcoreFeature()) || attributes.contains(genFeature.getEcoreFeature())) && name.indexOf(":") == -1) { int count = 0; for (GenFeature genFeature : genClass.getAllGenFeatures()) { String name = extendedMetaData.getName(genFeature.getEcoreFeature()); if (attributes.contains(genFeature.getEcoreFeature()) && !genFeature.isDerived() && name.indexOf(":") == -1) { stringBuffer.append(_StackFrame); stringBuffer.append(TEXT_109); count = 0; for (GenFeature genFeature : genClass.getAllGenFeatures()) { String name = extendedMetaData.getName(genFeature.getEcoreFeature()); if (elements.contains(genFeature.getEcoreFeature()) && name.indexOf(":") == -1) { stringBuffer.append(_StackFrame); stringBuffer.append(TEXT_123); count = 0; for (GenFeature genFeature : genClass.getAllGenFeatures()) { String name = extendedMetaData.getName(genFeature.getEcoreFeature()); if (elements.contains(genFeature.getEcoreFeature()) && name.indexOf(":") == -1) {
stringBuffer.append(genClass.getName()); stringBuffer.append(TEXT_66); for (GenFeature genFeature : genClass.getAllGenFeatures()) { String name = extendedMetaData.getName(genFeature.getEcoreFeature()); if ((elements.contains(genFeature.getEcoreFeature()) || attributes.contains(genFeature.getEcoreFeature())) && name.indexOf(":") == -1) { int count = 0; for (GenFeature genFeature : genClass.getAllGenFeatures()) { String name = extendedMetaData.getName(genFeature.getEcoreFeature()); if (attributes.contains(genFeature.getEcoreFeature()) && !genFeature.isDerived() && name.indexOf(":") == -1) { stringBuffer.append(_StackFrame); stringBuffer.append(TEXT_89); count = 0; for (GenFeature genFeature : genClass.getAllGenFeatures()) { String name = extendedMetaData.getName(genFeature.getEcoreFeature()); if (elements.contains(genFeature.getEcoreFeature()) && name.indexOf(":") == -1) { stringBuffer.append(_StackFrame); stringBuffer.append(TEXT_101); count = 0; for (GenFeature genFeature : genClass.getAllGenFeatures()) { String name = extendedMetaData.getName(genFeature.getEcoreFeature()); if (elements.contains(genFeature.getEcoreFeature()) && name.indexOf(":") == -1) {
stringBuffer.append(TEXT_62); if (genClassifier instanceof GenClass) { GenClass genClass = (GenClass)genClassifier; for (GenFeature genFeature : genClass.getAllGenFeatures()) { stringBuffer.append(TEXT_63); stringBuffer.append(genFeature.getFormattedName());
stringBuffer.append(TEXT_56); if (genClassifier instanceof GenClass) { GenClass genClass = (GenClass)genClassifier; for (GenFeature genFeature : genClass.getAllGenFeatures()) { stringBuffer.append(TEXT_57); stringBuffer.append(genFeature.getFormattedName());
for (GenFeature genFeature : genClass.getAllGenFeatures())
stringBuffer.append(genClass.getClassExtendsGenClass() == null ? 0 : genClass.getClassExtendsGenClass().getAllGenFeatures().size()); stringBuffer.append(TEXT_147);
if (genClass.hasStaticFeatures()) { stringBuffer.append(TEXT_127); stringBuffer.append(genClass.getClassExtendsGenClass() == null ? 0 : genClass.getClassExtendsGenClass().getAllGenFeatures().size()); stringBuffer.append(TEXT_45); stringBuffer.append(genClass.getClassExtendsGenClass() == null ? "0" : genClass.hasStaticFeatures() ? "ESTATIC_FEATURE_COUNT" : Integer.toString(genClass.getClassExtendsGenClass().getAllGenFeatures().size())); stringBuffer.append(TEXT_126);