Uses of Class
org.apache.commons.digester.Digester
Packages that use Digester
Package
Description
The
xmlrules package provides for XML-based definition of
rules for Digester.The
annotations package provides for Java5 Annotations
meta data-based definition of rules for Digester.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.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.
-
Uses of Digester in org.apache.commons.digester
Fields in org.apache.commons.digester declared as DigesterModifier and TypeFieldDescriptionprotected DigesterAbstractObjectCreationFactory.digesterThe associatedDigesterinstance that was set up byFactoryCreateRuleupon initialization.private DigesterAbstractRulesImpl.digesterDigester using thisRulesimplementationprotected DigesterRule.digesterThe Digester with which this Rule is associated.protected DigesterRulesBase.digesterThe Digester instance with which this Rules instance is associated.Methods in org.apache.commons.digester that return DigesterModifier and TypeMethodDescriptionAbstractObjectCreationFactory.getDigester()Returns theDigesterthat was set by theFactoryCreateRuleupon initialization.AbstractRulesImpl.getDigester()Return the Digester instance with which this Rules instance is associated.ObjectCreationFactory.getDigester()Returns theDigesterthat was set by theFactoryCreateRuleupon 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.RulesBase.getDigester()Return the Digester instance with which this Rules instance is associated.SetNestedPropertiesRule.AnyChildRules.getDigester()WithDefaultsRulesWrapper.getDigester()Gets digester using these RulesMethods in org.apache.commons.digester with parameters of type DigesterModifier and TypeMethodDescriptionvoidRuleSet.addRuleInstances(Digester digester) Add the set of Rule instances defined in this RuleSet to the specifiedDigesterinstance, associating them with our namespace URI (if any).abstract voidRuleSetBase.addRuleInstances(Digester digester) Add the set of Rule instances defined in this RuleSet to the specifiedDigesterinstance, associating them with our namespace URI (if any).Invoked just after an object has been popped from a digester stack.Invoked just before an object is to be pushed onto a digester stack.voidAbstractObjectCreationFactory.setDigester(Digester digester) Set theDigesterto allow the implementation to do logging, classloading based on the digester's classloader, etc.voidAbstractRulesImpl.setDigester(Digester digester) Set the Digester instance with which this Rules instance is associated.voidCallMethodRule.setDigester(Digester digester) Set the associated digester.voidObjectCreationFactory.setDigester(Digester digester) Set theDigesterto allow the implementation to do logging, classloading based on the digester's classloader, etc.voidRule.setDigester(Digester digester) Set theDigesterwith which thisRuleis associated.voidRules.setDigester(Digester digester) Set the Digester instance with which this Rules instance is associated.voidRulesBase.setDigester(Digester digester) Set the Digester instance with which this Rules instance is associated.voidSetNestedPropertiesRule.AnyChildRules.setDigester(Digester digester) voidSetNestedPropertiesRule.setDigester(Digester digester) Invoked when rule is added to digester.voidWithDefaultsRulesWrapper.setDigester(Digester digester) Sets digeseter using these RulesConstructors in org.apache.commons.digester with parameters of type DigesterModifierConstructorDescriptionBeanPropertySetterRule(Digester digester) Deprecated.BeanPropertySetterRule(Digester digester, String propertyName) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.CallMethodRule(Digester digester, String methodName, int paramCount) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.CallMethodRule(Digester digester, String methodName, int paramCount, Class<?>[] paramTypes) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.CallMethodRule(Digester digester, String methodName, int paramCount, String[] paramTypes) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.CallParamRule(Digester digester, int paramIndex) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.CallParamRule(Digester digester, int paramIndex, String attributeName) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.FactoryCreateRule(Digester digester, Class<?> clazz) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.FactoryCreateRule(Digester digester, Class<?> clazz, String attributeName) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.FactoryCreateRule(Digester digester, String className) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.FactoryCreateRule(Digester digester, String className, String attributeName) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.FactoryCreateRule(Digester digester, ObjectCreationFactory creationFactory) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.ObjectCreateRule(Digester digester, Class<?> clazz) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.ObjectCreateRule(Digester digester, String className) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.ObjectCreateRule(Digester digester, String attributeName, Class<?> clazz) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.ObjectCreateRule(Digester digester, String className, String attributeName) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.SetNextRule(Digester digester, String methodName) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.SetNextRule(Digester digester, String methodName, String paramType) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.SetPropertiesRule(Digester digester) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.SetPropertyRule(Digester digester, String name, String value) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.SetRootRule(Digester digester, String methodName) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.SetRootRule(Digester digester, String methodName, String paramType) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.SetTopRule(Digester digester, String methodName) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method.SetTopRule(Digester digester, String methodName, String paramType) Deprecated.The digester instance is now set in theDigester.addRule(String, Rule)method. -
Uses of Digester in org.apache.commons.digester.annotations
Methods in org.apache.commons.digester.annotations that return DigesterModifier and TypeMethodDescriptionDigesterLoader.createDigester(Class<?> target) Creates a new digester which rules are defined by analyzing the digester annotations in the target class.Methods in org.apache.commons.digester.annotations with parameters of type DigesterModifier and TypeMethodDescriptionvoidFromAnnotationsRuleSet.addRuleInstances(Digester digester) Add the set of Rule instances defined in this RuleSet to the specifiedDigesterinstance, associating them with our namespace URI (if any).voidAdd rules to an already created Digester instance, analyzing the digester annotations in the target class. -
Uses of Digester in org.apache.commons.digester.plugins
Fields in org.apache.commons.digester.plugins declared as DigesterModifier and TypeFieldDescriptionprotected DigesterPluginRules.digesterThe Digester instance with which this Rules instance is associated.Methods in org.apache.commons.digester.plugins that return DigesterModifier and TypeMethodDescriptionPluginRules.getDigester()Return the Digester instance with which this instance is associated.Methods in org.apache.commons.digester.plugins with parameters of type DigesterModifier and TypeMethodDescriptionabstract voidConfigures the digester with custom rules for some plugged-in class.voidAttempt to load custom rules for the target class at the specified pattern.static voidPluginDeclarationRule.declarePlugin(Digester digester, Properties props) 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 RuleLoaderRuleFinder.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.LogGet the Log object associated with the specified Digester instance, or a "no-op" logging object if the digester reference is null.voidDeclaration.init(Digester digester, PluginManager pm) Must be called exactly once, and must be called before any call to the configure method.abstract RulesReturn an instance of some Rules implementation that the plugged-in class shall use to match its private parsing rules.voidPluginRules.setDigester(Digester digester) Set the Digester instance with which this Rules instance is associated.Constructors in org.apache.commons.digester.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.digester.plugins.strategies
Methods in org.apache.commons.digester.plugins.strategies with parameters of type DigesterModifier and TypeMethodDescriptionvoidJust invoke the target method.voidAdd the rules previously loaded from the input stream into the specified digester.voidJust add a SetPropertiesRule at the specified path.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 RuleLoaderFinderFromResource.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. -
Uses of Digester in org.apache.commons.digester.xmlrules
Fields in org.apache.commons.digester.xmlrules declared as DigesterModifier and TypeFieldDescriptionprivate DigesterFromXmlRuleSet.rulesDigesterThe digester for loading the rules xml.protected DigesterDigesterRuleParser.targetDigesterThis is the digester to which we are adding the rules that we parse from the Rules XML document.Methods in org.apache.commons.digester.xmlrules that return DigesterModifier and TypeMethodDescriptionstatic DigesterDigesterLoader.createDigester(URL rulesXml) Creates a new digester and initializes it from the specified XML filestatic DigesterDigesterLoader.createDigester(URL rulesXml, Digester rulesDigester) Creates a new digester and initializes it from the specified XML file.static DigesterDigesterLoader.createDigester(InputSource rulesSource) Creates a new digester and initializes it from the specified InputSourcestatic DigesterDigesterLoader.createDigester(InputSource rulesSource, Digester rulesDigester) Creates a new digester and initializes it from the specified InputSource.DigesterRuleParser.RulesPrefixAdapter.getDigester()This method passes through to the underlying Rules object.Methods in org.apache.commons.digester.xmlrules with parameters of type DigesterModifier and TypeMethodDescriptionvoidDigesterRuleParser.addRuleInstances(Digester digester) Add to the given digester the set of Rule instances used to parse an XML document defining Digester rules.voidFromXmlRuleSet.addRuleInstances(Digester digester) Adds to the digester the set of Rule instances defined in the XML file for this rule set.voidFromXmlRuleSet.addRuleInstances(Digester digester, String basePath) Adds to the digester the set of Rule instances defined in the XML file for this rule set.static DigesterDigesterLoader.createDigester(URL rulesXml, Digester rulesDigester) Creates a new digester and initializes it from the specified XML file.static DigesterDigesterLoader.createDigester(InputSource rulesSource, Digester rulesDigester) Creates a new digester and initializes it from the specified InputSource.voidCreates and adds Digester Rules to a given Rules objectprivate voidFromXmlRuleSet.init(FromXmlRuleSet.XMLRulesLoader rulesLoader, DigesterRuleParser parser, Digester rulesDigester) Base constructorvoidDigesterRuleParser.RulesPrefixAdapter.setDigester(Digester digester) This method passes through to the underlying Rules object.voidSets the digester into which to add the parsed rulesConstructors in org.apache.commons.digester.xmlrules with parameters of type DigesterModifierConstructorDescriptionDigesterRuleParser(Digester targetDigester) Constructs a rule set for converting XML digester rule descriptions into Rule objects, and adding them to the given DigesterprivateDigesterRuleParser(Digester targetDigester, DigesterRuleParser.PatternStack<String> stack, Set<String> includedFiles) Constructs a rule set for parsing an XML digester rule file that has been included within an outer XML digester rule file.FromXmlRuleSet(URL rulesXml, Digester rulesDigester) Constructs a FromXmlRuleSet using the default DigesterRuleParser and a ruleDigester for loading the rules xml.FromXmlRuleSet(URL rulesXml, DigesterRuleParser parser, Digester rulesDigester) FromXmlRuleSet(InputSource inputSource, Digester rulesDigester) Constructs a FromXmlRuleSet using the default DigesterRuleParser and a ruleDigester for loading the rules xml.FromXmlRuleSet(InputSource inputSource, DigesterRuleParser parser, Digester rulesDigester)
Digester.addRule(String, Rule)method.