Package dk.mada.jaxrs.model.naming
Class NamingRules
java.lang.Object
dk.mada.jaxrs.model.naming.NamingRules
Constructs naming rules from user input.
-
Method Summary
Modifier and TypeMethodDescriptionstatic dk.mada.jaxrs.model.naming.NamingRules.NamingRule
Created a single naming rules based on a single rule configuration.static List<dk.mada.jaxrs.model.naming.NamingRules.NamingRule>
Builds a list of rules based on input configuration.
-
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
Created a single naming rules based on a single rule configuration.- Parameters:
ruleConfiguration
- the rule configuration- Returns:
- the resulting naming rule
-