toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case PositionalConstraint.exactly:
      return 'EXACTLY';
    case PositionalConstraint.startsWith:
      return 'STARTS_WITH';
    case PositionalConstraint.endsWith:
      return 'ENDS_WITH';
    case PositionalConstraint.contains:
      return 'CONTAINS';
    case PositionalConstraint.containsWord:
      return 'CONTAINS_WORD';
  }
}