code: private static boolean hasRestrictionsOtherThanEnumeration(XsdRestriction restriction){
          return restriction.getMinExclusive() != null || restriction.getMinInclusive() != null ||
                  restriction.getMaxExclusive() != null || restriction.getMaxInclusive() != null ||
                  restriction.getMaxLength() != null || restriction.getMinLength() != null ||
                  restriction.getLength() != null || restriction.getPattern() != null ||
                  restriction.getTotalDigits() != null || restriction.getFractionDigits() != null;
      }
docs: Checks if any type other than Enumeration is present in the {@link XsdRestriction} object.
  @param restriction The {@link XsdRestriction} object.
  @return Whether the received attribute has restrictions other than {@link XsdEnumeration}.