public String getAssociationEnd1PropertyCardinalitiesLabelAux() {
// TODO: implement this method
// Ensure that you remove @generated or mark it @generated NOT
String text = new String("");
Property p;
if (getAssociationEnd().size() > 0)
for (int i = 0; i < getAssociationEnd().size(); ++i)
if (getAssociationEnd().get(i) instanceof Property)
if (((Property) getAssociationEnd().get(i)).getAssociationEndPositionAux() == 1) {
p = (Property) getAssociationEnd().get(i);
if (p.getLower() == -1) {
if (p.getUpper() == -1)
text = "*..*";
else
text = "*.." + Integer.toString(p.getUpper());
} else {
if ((p.getLower() == 0) && (p.getUpper() == -1))
text = "*";
else {
if (p.getLower() == p.getUpper())
text = Integer.toString(p.getLower());
else {
if (p.getUpper() == -1)
text = Integer.toString(p.getLower()) + "..*";
else
text = Integer.toString(p.getLower()) + ".." + Integer.toString(p.getUpper());
}
}
}
}
return text;