public final class RuleProviderAccessor extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
add(ApplicationContext context,
RuleProvider provider)
Adds the passed-in provider to the Smooks
ApplicationContext. |
static RuleProvider |
get(ApplicationContext context,
String ruleProviderName)
Gets a
RuleProvider matching the passed in ruleProviderName. |
static Map<String,RuleProvider> |
getRuleProviders(ApplicationContext context)
Gets the Map of RuleProviders that exist in the Smooks AppcliationContext.
|
static String |
parseRuleName(String compositeRuleName)
Parse the rule name from the passed in composite rule name.
|
static String |
parseRuleProviderName(String compositeRuleName) |
public static final void add(ApplicationContext context, RuleProvider provider)
ApplicationContext.context - The Smooks ApplicationContext.provider - The RuleProvider that is to be added.public static final RuleProvider get(ApplicationContext context, String ruleProviderName)
RuleProvider matching the passed in ruleProviderName.context - The Smooks ApplicationContext.ruleProviderName - The name of the rule provider to lookup.RuleProvider The RuleProvider matching the passed in ruleProviderName.SmooksException - If no providers have been previously set in the ApplicationContext, or if
the specified ruleProviderName cannot be found.public static Map<String,RuleProvider> getRuleProviders(ApplicationContext context)
context - The Smooks ApplicationContext.public static String parseRuleName(String compositeRuleName)
compositeRuleName - The composite rule name in the form ruleProvider.ruleName.String The rule name part of the composite rule name.Copyright © 2020. All rights reserved.