Package | Description |
---|---|
org.apache.commons.digester3 |
The
xmlrules package provides for XML-based definition of
rules for Digester . |
org.apache.commons.digester3.binder |
The Digester EDSL allows configure Digester using fluent APIs.
|
org.apache.commons.digester3.examples.api.documentmarkup | |
org.apache.commons.digester3.examples.plugins.pipeline | |
org.apache.commons.digester3.plugins |
The
plugins package provides an easy mechanism whereby new
digestion rules can be added dynamically during a digestion. |
org.apache.commons.digester3.plugins.strategies |
The
plugins.strategies package contains "rule-finding" strategy
classes, and their associated "helper" loader classes. |
org.apache.commons.digester3.rss |
Example usage of Digester to parse XML documents compatible with the
Rich Site Summary format used by many newsfeeds.
|
Modifier and Type | Method and Description |
---|---|
Digester |
Rule.getDigester()
Return the Digester with which this Rule is associated.
|
Digester |
AbstractObjectCreationFactory.getDigester()
Returns the
Digester that was set by the FactoryCreateRule upon initialization. |
Digester |
ObjectCreationFactory.getDigester()
Returns the
Digester that was set by the FactoryCreateRule upon initialization. |
Digester |
Rules.getDigester()
Return the Digester instance with which this Rules instance is associated.
|
Digester |
AbstractRulesImpl.getDigester()
Return the Digester instance with which this Rules instance is associated.
|
Digester |
WithDefaultsRulesWrapper.getDigester()
Return the Digester instance with which this Rules instance is associated.
|
Modifier and Type | Method and Description |
---|---|
void |
RuleSet.addRuleInstances(Digester digester)
Add the set of Rule instances defined in this RuleSet to the specified
Digester instance,
associating them with our namespace URI (if any). |
<T> T |
StackAction.onPop(Digester d,
String stackName,
T o)
Invoked just after an object has been popped from a digester stack.
|
<T> T |
StackAction.onPush(Digester d,
String stackName,
T o)
Invoked just before an object is to be pushed onto a digester stack.
|
void |
Rule.setDigester(Digester digester)
Set the
Digester with which this Rule is associated. |
void |
CallMethodRule.setDigester(Digester digester)
Set the
Digester with which this Rule is associated. |
void |
AbstractObjectCreationFactory.setDigester(Digester digester)
Set the
Digester to allow the implementation to do logging, classloading based on the digester's
classloader, etc. |
void |
ObjectCreationFactory.setDigester(Digester digester)
Set the
Digester to allow the implementation to do logging, classloading based on the digester's
classloader, etc. |
void |
SetNestedPropertiesRule.setDigester(Digester digester)
Set the
Digester with which this Rule is associated. |
void |
Rules.setDigester(Digester digester)
Set the Digester instance with which this Rules instance is associated.
|
void |
AbstractRulesImpl.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 |
WithDefaultsRulesWrapper.setDigester(Digester digester)
Set the Digester instance with which this Rules instance is associated.
|
Modifier and Type | Method and Description |
---|---|
Digester |
DigesterLoader.newDigester()
|
Digester |
DigesterLoader.newDigester(Rules rules)
|
Digester |
DigesterLoader.newDigester(SAXParser parser)
|
Digester |
DigesterLoader.newDigester(SAXParser parser,
Rules rules)
|
Digester |
DigesterLoader.newDigester(XMLReader reader)
|
Digester |
DigesterLoader.newDigester(XMLReader reader,
Rules rules)
|
Modifier and Type | Method and Description |
---|---|
void |
DigesterLoader.addRules(Digester digester)
Add rules to an already created Digester instance, analyzing the digester annotations in the target class.
|
Modifier and Type | Class and Description |
---|---|
class |
MarkupDigester
This is a subclass of digester which supports rules which implement
the TextSegmentHandler interface, causing the "textSegment" method
on each matching rule (of the appropriate type) to be invoked when
an element contains a segment of text followed by a child element.
|
Modifier and Type | Method and Description |
---|---|
static void |
CompoundTransform.addRules(Digester d,
String patternPrefix) |
static void |
SubstituteTransform.addRules(Digester d,
String patternPrefix) |
Modifier and Type | Field and Description |
---|---|
protected Digester |
PluginRules.digester
The Digester instance with which this Rules instance is associated.
|
Modifier and Type | Method and Description |
---|---|
Digester |
PluginRules.getDigester()
Return the Digester instance with which this instance is associated.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
RuleLoader.addRules(Digester d,
String path)
Configures the digester with custom rules for some plugged-in class.
|
void |
Declaration.configure(Digester digester,
String pattern)
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.
|
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.
|
RuleLoader |
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).
|
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 |
RulesFactory.newRules(Digester d,
Class<?> pluginClass)
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.
|
Modifier and Type | Method and Description |
---|---|
void |
LoaderFromClass.addRules(Digester d,
String path)
Configures the digester with custom rules for some plugged-in class.
|
void |
LoaderFromStream.addRules(Digester d,
String path)
Configures the digester with custom rules for some plugged-in class.
|
void |
LoaderSetProperties.addRules(Digester digester,
String path)
Configures the digester with custom rules for some plugged-in class.
|
RuleLoader |
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.
|
RuleLoader |
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.
|
RuleLoader |
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.
|
RuleLoader |
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.
|
RuleLoader |
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.
|
RuleLoader |
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.
|
RuleLoader |
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.
|
RuleLoader |
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.
|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
RSSDigester
Implementation of org.apache.commons.digester3.Digester
designed to process input streams that conform to the Rich Site
Summary DTD, version 0.91.
|
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.