Class NounInflector.Replacer

java.lang.Object
org.glassfish.jersey.jaxb.internal.NounInflector.Replacer
Enclosing class:
NounInflector

private static class NounInflector.Replacer extends Object

Internal class that uses a regular expression matcher to both match the specified regular expression to a specified word, and (if successful) perform the appropriate substitutions.

  • Field Details

  • Constructor Details

    • Replacer

      public Replacer(String match, String rule, boolean insensitive)
  • Method Details

    • replacement

      public String replacement(String input)
      Replace the input if it matches the pattern.
      Parameters:
      input - the input string.
      Returns:
      the replacement, if the input matches, otherwise null.