Package com.wordnik.swagger.model

Examples of com.wordnik.swagger.model.AllowableRangeValues


    allowableValueString = allowableValueString.trim().replaceAll(" ", "");
    if (allowableValueString.startsWith("range[")) {
      allowableValueString = allowableValueString.replaceAll("range\\[", "").replaceAll("]", "");
      Iterable<String> split = Splitter.on(',').trimResults().omitEmptyStrings().split(allowableValueString);
      List<String> ranges = newArrayList(split);
      allowableValues = new AllowableRangeValues(ranges.get(0), ranges.get(1));
    } else if (allowableValueString.contains(",")) {
      Iterable<String> split = Splitter.on(',').trimResults().omitEmptyStrings().split(allowableValueString);
      allowableValues = new AllowableListValues(toScalaList(newArrayList(split)), "LIST");
    } else if (!isBlank(allowableValueString)) {
      List<String> singleVal = Arrays.asList(allowableValueString.trim());
View Full Code Here


        return max;
    }

    @Override
    public AllowableRangeValues toSwaggerModel() {
        return new AllowableRangeValues(min, max);
    }
View Full Code Here

TOP

Related Classes of com.wordnik.swagger.model.AllowableRangeValues

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.