// create a static instance of class for each enumeration value
ArrayList enumpairs = new ArrayList();
for (int i = 0; i < facets.size(); i++) {
FacetElement facet = (FacetElement)facets.get(i);
if (facet.type() == SchemaBase.ENUMERATION_TYPE) {
// get value for this enumeration element
FacetElement.Enumeration enumelem = (Enumeration)facet;
String value = enumelem.getValue();