Class NamingRules

java.lang.Object
dk.mada.jaxrs.model.naming.NamingRules

public final class NamingRules extends Object
Constructs naming rules from user input.
  • Method Summary

    Modifier and Type
    Method
    Description
    static dk.mada.jaxrs.model.naming.NamingRules.NamingRule
    toRule(String ruleConfiguration)
    Created a single naming rules based on a single rule configuration.
    static List<dk.mada.jaxrs.model.naming.NamingRules.NamingRule>
    toRules(String ruleConfigurations)
    Builds a list of rules based on input configuration.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • toRules

      public static List<dk.mada.jaxrs.model.naming.NamingRules.NamingRule> toRules(String ruleConfigurations)
      Builds a list of rules based on input configuration. The caller of this method will then be able to compute a named based on an input string, and applying the list of returned naming rules sequentially to this string.
      Parameters:
      ruleConfigurations - the rule configurations, separated by ;
      Returns:
      a list of naming rules to be applied sequentially
    • toRule

      public static dk.mada.jaxrs.model.naming.NamingRules.NamingRule toRule(String ruleConfiguration)
      Created a single naming rules based on a single rule configuration.
      Parameters:
      ruleConfiguration - the rule configuration
      Returns:
      the resulting naming rule