int i1 = expression.indexOf("{");
int i2 = expression.indexOf("}");
Vector labelVector = new Vector();
if (i2 - i1 > 1) {
String inside = expression.substring(i1 + 1, i2);
StringTokenizer tokenizer = new StringTokenizer(inside, ",");
String element;
while (tokenizer.hasMoreTokens()) {
element = tokenizer.nextToken();
labelVector.addElement(element.trim());
}
}
else {
throw new IllegalArgumentException("IDL enumeration is empty");
}
myLabelEnumeration = labelVector.elements();