StringBuffer sb = new StringBuffer();
HashSet<String> skip = getSkipEnumValueCopy();
Iterator<EnumValue> values = edef.getEnumValue();
while(values.hasNext()){
EnumValue value = values.next();
if ( (skip != null) && (skip.contains(value.getName())))
continue;
sb.append(" public final GxtEnumValue ");
sb.append(value.getName());
sb.append(" = new GxtEnumValue(");
sb.append("\"" + value.getName() + "\", ");
sb.append(value.getId() + ", ");
sb.append("\"" + sortPad(value.getId()) + "\", ");
if (isUseNameAsLabel())
sb.append("\"" + value.getName() + "\");\n");
else if (value.getLabel() == null)
sb.append("\"" + value.getDescription() + "\");\n");
else
sb.append("\"" + value.getLabel() + "\");\n");
}
return(sb.toString());
}