code: protected XmlSchemaSimpleType createAlphaXmlSchemaSimpleType(
              final XsdDataItem xsdDataItem, final String xsdTypeName) {
  
          XmlSchemaSimpleTypeRestriction restriction = createRestriction(xsdTypeName);
          if (xsdDataItem.getLength() > -1) {
              restriction.getFacets().add(
                      createMaxLengthFacet(xsdDataItem.getLength()));
          }
          if (xsdDataItem.getPattern() != null) {
              restriction.getFacets().add(
                      createPatternFacet(xsdDataItem.getPattern()));
          }
          addEnumerationFacets(xsdDataItem, restriction);
          return createXmlSchemaSimpleType(restriction);
      }
docs: Create a simple type for an alphanumeric type.
  <p/>
  COBOL alphanumeric fields are fixed length so we create a facet to
  enforce that constraint. A pattern derived from the picture clause can
  also be used as a facet. If the item has children conditions, we add
  enumeration facets
  
  @param xsdDataItem COBOL data item decorated with XSD attributes
  @param xsdTypeName the XML schema built-in type name to use as a
  restriction
  @return an XML schema simple type