public void setFacets(SimpleType simpleType) {
Enumeration enumeration = getFacets(simpleType);
while (enumeration.hasMoreElements()) {
Facet facet = (Facet)enumeration.nextElement();
String name = facet.getName();
//-- maxExclusive
if (Facet.MAX_EXCLUSIVE.equals(name))
setMaxExclusive(new java.math.BigDecimal(facet.getValue()));
//-- maxInclusive
else if (Facet.MAX_INCLUSIVE.equals(name))
setMaxInclusive(new java.math.BigDecimal(facet.getValue()));
//-- minExclusive
else if (Facet.MIN_EXCLUSIVE.equals(name))
setMinExclusive(new java.math.BigDecimal(facet.getValue()));
//-- minInclusive
else if (Facet.MIN_INCLUSIVE.equals(name))
setMinInclusive(new java.math.BigDecimal(facet.getValue()));
//--totalDigits
else if (Facet.TOTALDIGITS.equals(name))
setTotalDigits(facet.toInt());
//--fractionDigits
else if (Facet.FRACTIONDIGITS.equals(name))
setFractionDigits(facet.toInt());
}
} //-- setFacets