blob: a36c780505aa1e346e909deb0f4b3ed3df2bddc1 [file] [log] [blame]
List<EAttribute> eAllAttributes = eObject.eClass().getEAllAttributes();
for (EAttribute eAttribute : eAllAttributes) {
if ("EString".equals(eAttribute.getEType().getName())) {
if (eAttribute.getUpperBound() == 1) {
String string = (String) eObject.eGet(eAttribute);
eObject.eSet(eAttribute, new GenerationHelper().replaceProperties(eObject, string));
} else {
List<String> stringList = (List<String>) eObject.eGet(eAttribute);
for (int i = 0; i < stringList.size(); i++) {
String string = stringList.get(i);
stringList.set(i, new GenerationHelper().replaceProperties(eObject, string));
}
}
}
}