} else if (name.equals("pattern")) {
facet = new XmlSchemaPatternFacet();
} else if (name.equals("totalDigits")) {
facet = new XmlSchemaTotalDigitsFacet();
} else if (name.equals("whiteSpace")) {
facet = new XmlSchemaWhiteSpaceFacet();
} else {
throw new XmlSchemaException("Incorrect facet with name \""
+ name + "\" found.");
}
facet.setFixed(fixed);