Class OpenapiStringUtils

java.lang.Object
dk.mada.jaxrs.generator.mpclient.dto.OpenapiStringUtils

public final class OpenapiStringUtils extends Object
Methods lifted directly from OpenApi-generator.
  • Method Details

    • camelize

      public static String camelize(String word)
      Camelize name (parameter, property, method, etc) with upper case for first letter copied from Twitter elephant bird. https://github.com/twitter/elephant-bird/blob/master/core/src/main/java/com/twitter/elephantbird/util/Strings.java
      Parameters:
      word - string to be camelize
      Returns:
      camelized string
    • underscore

      public static String underscore(String word)
      Underscore the given word. Copied from Twitter elephant bird https://github.com/twitter/elephant-bird/blob/master/core/src/main/java/com/twitter/elephantbird/util/Strings.java
      Parameters:
      word - The word
      Returns:
      The underscored version of the word