List<XSFacet> patternList = simpleType.getFacets(FACET_PATTERN);
if (patternList.size() > 1) {
if (notAnnotated(fieldVar, patternListAnn)) {
JAnnotationUse list = fieldVar.annotate(patternListAnn);
JAnnotationArrayMember listValue = list.paramArray("value");
for (XSFacet xsFacet : patternList)
// If corresponds to <xsd:restriction base="xsd:string">.
if ("String".equals(fieldType.name()))
a.put(listValue.annotate(patternAnn).param("regexp", eliminateShorthands(xsFacet.getValue().value)), FacetType.pattern);