if (!type.getEnumerationFacets().isEmpty()) {
//gather up all teh possible values
Set values = new HashSet();
for (Iterator e = type.getEnumerationFacets().iterator(); e.hasNext();) {
XSDEnumerationFacet enumeration = (XSDEnumerationFacet) e.next();
for (Iterator v = enumeration.getValue().iterator(); v.hasNext();) {
values.add(v.next());
}
}
for (int i = 0; i < list.length; i++) {