Package org.apache.commons.digester3
package org.apache.commons.digester3
The
xmlrules
package provides for XML-based definition of
rules for Digester
. This improves maintainability of Java code,
as rules are now defined in XML and read into Digester
at run-time.-
ClassDescriptionAbstract base class for
ObjectCreationFactory
implementations.AbstractRuleImpl
provides basic services forRules
implementations.Rule implements sets a bean property on the top object to the body text.Rule implementation that calls a method on an object on the stack (normally the top/parent object), passing arguments collected from subsequentCallParamRule
rules or from the body of this element.Rule implementation that saves a parameter for use by a surroundingCallMethodRule
.
A Digester processes an XML input stream by matching a series of element nesting patterns to execute Rules that have been added prior to the start of parsing.Extension ofRulesBase
for complex schema.Rule implementation that uses anObjectCreationFactory
to create a new object which it pushes onto the object stack.A rule implementation that creates a DOMNode
containing the XML at the element that matched the rule.Rule implementation that creates a new object and pushes it onto the object stack.Interface for use withFactoryCreateRule
.Rule implementation that saves a parameter for use by a surroundingCallMethodRule
.
Rule implementation that saves a parameter containing theDigester
matching path for use by a surroundingCallMethodRule
.Detached representation of a method invocation.Regular expression matching strategy for RegexRules.Rules implementation that uses regular expression matching for paths.Used to associate rules with paths in the rules listConcrete implementations of this class implement actions to be taken when a corresponding nested pattern of XML elements has been matched.Defines a functor interface implemented by classes that perform a predicate testPublic interface defining a collection of Rule instances (and corresponding matching patterns) plus an implementation of a matching policy that selects the rules that match a particular pattern of nested elements discovered during parsing.Default implementation of theRules
interface that supports the standard rule matching behavior.Public interface defining a shorthand means of configuring a complete set of relatedRule
definitions, possibly associated with a particular namespace URI, in one operation.Convenience base class that implements theRuleSet
interface.Rule implementation that sets properties on the object at the top of the stack, based on child elements with names matching properties on that object.Rule implementation that calls a method on the (top-1) (parent) object, passing the top object (child) as an argument.Rule implementation that sets properties on the object at the top of the stack, based on attributes with corresponding names.Rule implementation that sets an individual property on the object at the top of the stack, based on attributes with specified names.Rule implementation that calls a method on the root object on the stack, passing the top object (child) as an argument.Rule implementation that calls a "set parent" method on the top (child) object, passing the (top-1) (parent) object as an argument.Simple regex pattern matching algorithm.An interface that can be implemented in order to get notifications of objects being pushed onto a digester stack or popped from one.(Logical) Interface for substitution strategies.Rules
Decorator that returns default rules when no matches are returned by the wrapped implementation.