toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case RuleType.binaryLength:
      return 'BINARY_LENGTH';
    case RuleType.numberComparison:
      return 'NUMBER_COMPARISON';
    case RuleType.stringFromSet:
      return 'STRING_FROM_SET';
    case RuleType.stringLength:
      return 'STRING_LENGTH';
  }
}