Uses of Class
org.apache.commons.digester3.Digester
Packages that use Digester
Package
Description
The
xmlrules
package provides for XML-based definition of
rules for Digester
.The Digester EDSL allows configure Digester using fluent APIs.
The
plugins
package provides an easy mechanism whereby new
digestion rules can be added dynamically during a digestion.The
plugins.strategies
package contains "rule-finding" strategy
classes, and their associated "helper" loader classes.-
Uses of Digester in org.apache.commons.digester3
Fields in org.apache.commons.digester3 declared as DigesterModifier and TypeFieldDescriptionprivate Digester
AbstractObjectCreationFactory.digester
The associatedDigester
instance that was set up byFactoryCreateRule
upon initialization.private Digester
AbstractRulesImpl.digester
Digester using thisRules
implementationprivate final Digester
ObjectCreateRule.ProxyManager.digester
private Digester
Rule.digester
The Digester with which this Rule is associated.Methods in org.apache.commons.digester3 that return DigesterModifier and TypeMethodDescriptionAbstractObjectCreationFactory.getDigester()
Returns theDigester
that was set by theFactoryCreateRule
upon initialization.AbstractRulesImpl.getDigester()
Return the Digester instance with which this Rules instance is associated.ObjectCreationFactory.getDigester()
Returns theDigester
that was set by theFactoryCreateRule
upon initialization.Rule.getDigester()
Return the Digester with which this Rule is associated.Rules.getDigester()
Return the Digester instance with which this Rules instance is associated.SetNestedPropertiesRule.AnyChildRules.getDigester()
WithDefaultsRulesWrapper.getDigester()
Return the Digester instance with which this Rules instance is associated.Methods in org.apache.commons.digester3 with parameters of type DigesterModifier and TypeMethodDescriptionvoid
RuleSet.addRuleInstances
(Digester digester) Add the set of Rule instances defined in this RuleSet to the specifiedDigester
instance, associating them with our namespace URI (if any).<T> T
Invoked just after an object has been popped from a digester stack.<T> T
Invoked just before an object is to be pushed onto a digester stack.void
AbstractObjectCreationFactory.setDigester
(Digester digester) Set theDigester
to allow the implementation to do logging, classloading based on the digester's classloader, etc.void
AbstractRulesImpl.setDigester
(Digester digester) Set the Digester instance with which this Rules instance is associated.void
CallMethodRule.setDigester
(Digester digester) Set theDigester
with which thisRule
is associated.void
ObjectCreationFactory.setDigester
(Digester digester) Set theDigester
to allow the implementation to do logging, classloading based on the digester's classloader, etc.void
Rule.setDigester
(Digester digester) Set theDigester
with which thisRule
is associated.void
Rules.setDigester
(Digester digester) Set the Digester instance with which this Rules instance is associated.void
RulesBase.setDigester
(Digester digester) Set the Digester instance with which this Rules instance is associated.void
SetNestedPropertiesRule.AnyChildRules.setDigester
(Digester digester) void
SetNestedPropertiesRule.setDigester
(Digester digester) Set theDigester
with which thisRule
is associated.void
WithDefaultsRulesWrapper.setDigester
(Digester digester) Set the Digester instance with which this Rules instance is associated.Constructors in org.apache.commons.digester3 with parameters of type DigesterModifierConstructorDescription(package private)
ProxyManager
(Class<?> clazz, Constructor<?> constructor, Object[] constructorArguments, Digester digester) -
Uses of Digester in org.apache.commons.digester3.binder
Methods in org.apache.commons.digester3.binder that return DigesterModifier and TypeMethodDescriptionDigesterLoader.newDigester()
DigesterLoader.newDigester
(SAXParser parser) DigesterLoader.newDigester
(SAXParser parser, Rules rules) DigesterLoader.newDigester
(Rules rules) DigesterLoader.newDigester
(XMLReader reader) DigesterLoader.newDigester
(XMLReader reader, Rules rules) Methods in org.apache.commons.digester3.binder with parameters of type DigesterModifier and TypeMethodDescriptionvoid
FromBinderRuleSet.addRuleInstances
(Digester digester) Add the set of Rule instances defined in this RuleSet to the specifiedDigester
instance, associating them with our namespace URI (if any).void
Add rules to an already created Digester instance, analyzing the digester annotations in the target class. -
Uses of Digester in org.apache.commons.digester3.plugins
Fields in org.apache.commons.digester3.plugins declared as DigesterModifier and TypeFieldDescriptionprotected Digester
PluginRules.digester
The Digester instance with which this Rules instance is associated.Methods in org.apache.commons.digester3.plugins that return DigesterModifier and TypeMethodDescriptionPluginRules.getDigester()
Return the Digester instance with which this instance is associated.Methods in org.apache.commons.digester3.plugins with parameters of type DigesterModifier and TypeMethodDescriptionabstract void
Configures the digester with custom rules for some plugged-in class.void
Attempt to load custom rules for the target class at the specified pattern.static void
PluginDeclarationRule.declarePlugin
(Digester digester, Properties props) Helper method to declare a plugin inside the given Digester.PluginManager.findLoader
(Digester digester, String id, Class<?> pluginClass, Properties props) Given a plugin class and some associated properties, scan the list of known RuleFinder instances until one detects a source of custom rules for this plugin (aka a RuleLoader).abstract RuleLoader
RuleFinder.findLoader
(Digester d, Class<?> pluginClass, Properties p) Apply the finder algorithm to attempt to locate a source of digester rules for the specified plugin class.(package private) static org.apache.commons.logging.Log
Get the Log object associated with the specified Digester instance, or a "no-op" logging object if the digester reference is null.void
Declaration.init
(Digester digester, PluginManager pm) Must be called exactly once, and must be called before any call to the configure method.abstract Rules
Return an instance of some Rules implementation that the plugged-in class shall use to match its private parsing rules.void
PluginRules.setDigester
(Digester digester) Set the Digester instance with which this Rules instance is associated.Constructors in org.apache.commons.digester3.plugins with parameters of type DigesterModifierConstructorDescription(package private)
PluginRules
(Digester digester, String mountPoint, PluginRules parent, Class<?> pluginClass) Constructs a Rules instance which has a parent Rules object (which is different from having a delegate rules object). -
Uses of Digester in org.apache.commons.digester3.plugins.strategies
Methods in org.apache.commons.digester3.plugins.strategies with parameters of type DigesterModifier and TypeMethodDescriptionvoid
Configures the digester with custom rules for some plugged-in class.void
Configures the digester with custom rules for some plugged-in class.void
Configures the digester with custom rules for some plugged-in class.FinderFromClass.findLoader
(Digester digester, Class<?> pluginClass, Properties p) If there exists a property with the name matching constructor param ruleClassAttr, then load the specified class, locate the appropriate rules-adding method on that class, and return an object encapsulating that info.FinderFromDfltClass.findLoader
(Digester digester, Class<?> pluginClass, Properties p) If there exists a class whose name is the plugin class name + the suffix specified to the constructor, then load that class, locate the appropriate rules-adding method on that class, and return an object encapsulating that info.FinderFromDfltMethod.findLoader
(Digester d, Class<?> pluginClass, Properties p) If there exists on the plugin class a method with name matching the constructor's methodName value then locate the appropriate Method on the plugin class and return an object encapsulating that info.FinderFromDfltResource.findLoader
(Digester d, Class<?> pluginClass, Properties p) If there exists a resource file whose name is equal to the plugin class name + the suffix specified in the constructor, then load that file, run it through the xmlrules module and return an object encapsulating those rules.FinderFromFile.findLoader
(Digester d, Class<?> pluginClass, Properties p) If there exists a property with the name specified in the constructor, then load that file, run it through the xmlrules module and return an object encapsulating those rules.FinderFromMethod.findLoader
(Digester d, Class<?> pluginClass, Properties p) If there exists a property with the name matching constructor param methodAttr, then locate the appropriate Method on the plugin class and return an object encapsulating that info.FinderFromResource.findLoader
(Digester d, Class<?> pluginClass, Properties p) If there exists a property with the name matching constructor param resourceAttr, then load that file, run it through the xmlrules module and return an object encapsulating those rules.FinderSetProperties.findLoader
(Digester d, Class<?> pluginClass, Properties p) Returns a RuleLoader unless the properties contain an entry with the name matching constructor param propsAttr, and the value matching what is in falseval.static RuleLoader
FinderFromResource.loadRules
(Digester d, Class<?> pluginClass, InputStream is, String resourceName) Open the specified resource file (ie a file in the classpath, including being within a jar in the classpath), run it through the xmlrules module and return an object encapsulating those rules.