code: protected void addEnumerationFacets(final XsdDataItem xsdDataItem,
              final XmlSchemaSimpleTypeRestriction restriction) {
          if (getConfig().mapConditionsToFacets()) {
              boolean hasValueThru = false;
              for (XsdDataItem child : xsdDataItem.getChildren()) {
                  if (child.getDataEntryType() == DataEntryType.CONDITION) {
                      for (String conditionValue : child.getConditionLiterals()) {
                          restriction.getFacets().add(
                                  createEnumerationFacet(ValueUtil
                                          .resolveFigurative(conditionValue,
                                                  xsdDataItem
                                                          .getMaxStorageLength(),
                                                  getConfig().quoteIsQuote())));
                      }
                      for (Range conditionRange : child.getConditionRanges()) {
                          if (hasValueThru) {
                              _log.warn(xsdDataItem.getCobolName()
                                      + " has several VALUE THRU statements."
                                      + " Cannot translate to XSD."
                                      + " Only the first one will be converted."
                                      + " Ignoring: " + conditionRange.toString());
                              break;
                          }
                          restriction.getFacets().add(
                                  createMinInclusiveFacet(ValueUtil
                                          .resolveFigurative(conditionRange
                                                  .getFrom(), xsdDataItem
                                                  .getMaxStorageLength(),
                                                  getConfig().quoteIsQuote())));
                          restriction.getFacets().add(
                                  createMaxInclusiveFacet(ValueUtil
                                          .resolveFigurative(conditionRange
                                                  .getTo(), xsdDataItem
                                                  .getMaxStorageLength(),
                                                  getConfig().quoteIsQuote())));
                          hasValueThru = true;
                      }
  
                  }
              }
          }
      }
docs: If simple type has conditions attached to it, emit enumeration facets.
  
  @param xsdDataItem COBOL data item decorated with XSD attributes
  @param restriction the current set of constraints