setPattern(facet.getValue());
addPattern(facet.getValue());
	public void setFacets(SimpleType simpleType) {		//-- copy valid facets		Enumeration enum = getFacets(simpleType);		while (enum.hasMoreElements()) {			Facet facet = (Facet) enum.nextElement();			String name = facet.getName();			//-- maxLength			if (Facet.MAX_LENGTH.equals(name))				setMaxLength(facet.toInt());			//-- minLength			else if (Facet.MIN_LENGTH.equals(name))				setMinLength(facet.toInt());			//-- length			else if (Facet.LENGTH.equals(name))				setLength(facet.toInt());			else if (Facet.PATTERN.equals(name))				setPattern(facet.getValue());		}