code: public static OWLFacet getFacet(int facetMarker) {
          if(facetMarker < 0 || facetMarker > 10) {
              throw new IndexOutOfBoundsException("Facet marker out of range");
          }
          switch (facetMarker) {
              case 0:
                  return OWLFacet.LENGTH;
              case 1:
                  return OWLFacet.MIN_LENGTH;
              case 2:
                  return OWLFacet.MAX_LENGTH;
              case 3:
                  return OWLFacet.PATTERN;
              case 4:
                  return OWLFacet.MIN_INCLUSIVE;
              case 5:
                  return OWLFacet.MIN_EXCLUSIVE;
              case 6:
                  return OWLFacet.MAX_INCLUSIVE;
              case 7:
                  return OWLFacet.MAX_EXCLUSIVE;
              case 8:
                  return OWLFacet.TOTAL_DIGITS;
              case 9:
                  return OWLFacet.FRACTION_DIGITS;
              case 10:
                  return OWLFacet.LANG_RANGE;
              default:
                  throw new IllegalArgumentException("Facet marker out of range");
          }
      }
docs: Gets the {@link OWLFacet} for the specified facet marker index.
  @param facetMarker The facet marker index (>= 0, <= 10).
  @return The corresponding {@link OWLFacet}.
  @throws IndexOutOfBoundsException if the facet marker is out of the specified range.