Package | Description |
---|---|
org.apache.commons.digester |
The
xmlrules package provides for XML-based definition of
rules for Digester . |
org.apache.commons.digester.plugins |
The
plugins package provides an easy mechanism whereby new
digestion rules can be added dynamically during a digestion. |
org.apache.commons.digester.xmlrules |
The Digester package lets you configure an XML -> Java object mapping module,
which triggers certain actions called rules whenever a particular pattern of
nested XML elements is recognized.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractRulesImpl
AbstractRuleImpl provides basic services for Rules implementations. |
class |
ExtendedBaseRules
Extension of
RulesBase for complex schema. |
class |
RegexRules
Rules implementation that uses regular expression matching for paths.
|
class |
RulesBase
Default implementation of the
Rules interface that supports
the standard rule matching behavior. |
private class |
SetNestedPropertiesRule.AnyChildRules
Private Rules implementation
|
class |
WithDefaultsRulesWrapper
Rules Decorator that returns default rules
when no matches are returned by the wrapped implementation. |
Modifier and Type | Field and Description |
---|---|
private Rules |
SetNestedPropertiesRule.AnyChildRules.decoratedRules |
protected Rules |
Digester.rules
The
Rules implementation containing our collection of
Rule instances and associated matching policy. |
private Rules |
WithDefaultsRulesWrapper.wrappedRules
The Rules implementation that this class wraps.
|
Modifier and Type | Method and Description |
---|---|
Rules |
SetNestedPropertiesRule.AnyChildRules.getOldRules() |
Rules |
Digester.getRules()
Return the
Rules implementation object containing our
rules collection and associated matching policy. |
Modifier and Type | Method and Description |
---|---|
void |
SetNestedPropertiesRule.AnyChildRules.init(java.lang.String prefix,
Rules rules) |
void |
Digester.setRules(Rules rules)
Set the
Rules implementation object containing our
rules collection and associated matching policy. |
Constructor and Description |
---|
WithDefaultsRulesWrapper(Rules wrappedRules)
Base constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
PluginRules
A custom digester Rules manager which must be used as the Rules object
when using the plugins module functionality.
|
Modifier and Type | Field and Description |
---|---|
private Rules |
PluginRules.decoratedRules
The rules implementation that we are "enhancing" with plugins
functionality, as per the Decorator pattern.
|
Modifier and Type | Method and Description |
---|---|
(package private) Rules |
PluginRules.getDecoratedRules()
This package-scope method is used by the PluginCreateRule class to
get direct access to the rules that were dynamically added by the
plugin.
|
Rules |
PluginRules.getParent()
Return the parent Rules object.
|
abstract Rules |
RulesFactory.newRules(Digester d,
java.lang.Class<?> pluginClass)
Return an instance of some Rules implementation that the plugged-in
class shall use to match its private parsing rules.
|
Constructor and Description |
---|
PluginRules(Rules decoratedRules)
Constructor for top-level Rules object which handles rule-matching
using the specified implementation.
|
Modifier and Type | Class and Description |
---|---|
private class |
DigesterRuleParser.RulesPrefixAdapter
Wraps a Rules object.
|
Modifier and Type | Field and Description |
---|---|
private Rules |
DigesterRuleParser.RulesPrefixAdapter.delegate |
Constructor and Description |
---|
RulesPrefixAdapter(java.lang.String patternPrefix,
Rules rules) |