Uses of Class
org.apache.commons.digester.Rule
-
Packages that use Rule Package Description org.apache.commons.digester Thexmlrulespackage provides for XML-based definition of rules forDigester.org.apache.commons.digester.annotations Theannotationspackage provides for Java5 Annotations meta data-based definition of rules forDigester.org.apache.commons.digester.annotations.internal This package contains internal use only classes, users can ignore it.org.apache.commons.digester.annotations.spi Contains annotations package SPI definition.org.apache.commons.digester.plugins Thepluginspackage 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. -
-
Uses of Rule in org.apache.commons.digester
Subclasses of Rule in org.apache.commons.digester Modifier and Type Class Description classBeanPropertySetterRuleRule implements sets a bean property on the top object to the body text.classCallMethodRuleRule implementation that calls a method on an object on the stack (normally the top/parent object), passing arguments collected from subsequentCallParamRulerules or from the body of this element.classCallParamRuleRule implementation that saves a parameter for use by a surroundingCallMethodRule.classFactoryCreateRuleRule implementation that uses anObjectCreationFactoryto create a new object which it pushes onto the object stack.classNodeCreateRuleA rule implementation that creates a DOMNodecontaining the XML at the element that matched the rule.classObjectCreateRuleRule implementation that creates a new object and pushes it onto the object stack.classObjectParamRuleRule implementation that saves a parameter for use by a surroundingCallMethodRule.classPathCallParamRuleRule implementation that saves a parameter containing theDigestermatching path for use by a surroundingCallMethodRule.classSetNestedPropertiesRuleRule implementation that sets properties on the object at the top of the stack, based on child elements with names matching properties on that object.classSetNextRuleRule implementation that calls a method on the (top-1) (parent) object, passing the top object (child) as an argument.classSetPropertiesRuleRule implementation that sets properties on the object at the top of the stack, based on attributes with corresponding names.classSetPropertyRuleRule implementation that sets an individual property on the object at the top of the stack, based on attributes with specified names.classSetRootRuleRule implementation that calls a method on the root object on the stack, passing the top object (child) as an argument.classSetTopRuleRule implementation that calls a "set parent" method on the top (child) object, passing the (top-1) (parent) object as an argument.Fields in org.apache.commons.digester with type parameters of type Rule Modifier and Type Field Description protected java.util.HashMap<java.lang.String,java.util.List<Rule>>RulesBase. cacheThe set of registered Rule instances, keyed by the matching pattern.protected java.util.Stack<java.util.List<Rule>>Digester. matchesStack whose elements are List objects, each containing a list of Rule objects as returned from Rules.getMatch().protected java.util.ArrayList<Rule>RulesBase. rulesThe set of registered Rule instances, in the order that they were originally registered.Methods in org.apache.commons.digester that return types with arguments of type Rule Modifier and Type Method Description java.util.List<Rule>WithDefaultsRulesWrapper. getDefaults()Gets Rule's which will be fired when the wrapped implementation returns no matchesprotected java.util.List<Rule>RulesBase. lookup(java.lang.String namespaceURI, java.lang.String pattern)Return a List of Rule instances for the specified pattern that also match the specified namespace URI (if any).java.util.List<Rule>AbstractRulesImpl. match(java.lang.String pattern)Deprecated.Call match(namespaceURI,pattern) instead.abstract java.util.List<Rule>AbstractRulesImpl. match(java.lang.String namespaceURI, java.lang.String pattern)Return a List of all registered Rule instances that match the specified nesting pattern, or a zero-length List if there are no matches.java.util.List<Rule>ExtendedBaseRules. match(java.lang.String namespace, java.lang.String pattern)Return a List of all registered Rule instances that match the specified nesting pattern, or a zero-length List if there are no matches.java.util.List<Rule>RegexRules. match(java.lang.String namespaceURI, java.lang.String pattern)Finds matching rules by using current regex matching strategy.java.util.List<Rule>Rules. match(java.lang.String pattern)Deprecated.Call match(namespaceURI,pattern) instead.java.util.List<Rule>Rules. match(java.lang.String namespaceURI, java.lang.String pattern)Return a List of all registered Rule instances that match the specified nesting pattern, or a zero-length List if there are no matches.java.util.List<Rule>RulesBase. match(java.lang.String pattern)Deprecated.Call match(namespaceURI,pattern) instead.java.util.List<Rule>RulesBase. match(java.lang.String namespaceURI, java.lang.String pattern)Return a List of all registered Rule instances that match the specified nesting pattern, or a zero-length List if there are no matches.java.util.List<Rule>WithDefaultsRulesWrapper. match(java.lang.String pattern)java.util.List<Rule>WithDefaultsRulesWrapper. match(java.lang.String namespaceURI, java.lang.String pattern)Return list of rules matching given pattern.abstract java.util.List<Rule>AbstractRulesImpl. rules()Return a List of all registered Rule instances, or a zero-length List if there are no registered Rule instances.java.util.List<Rule>RegexRules. rules()Return a List of all registered Rule instances, or a zero-length List if there are no registered Rule instances.java.util.List<Rule>Rules. rules()Return a List of all registered Rule instances, or a zero-length List if there are no registered Rule instances.java.util.List<Rule>RulesBase. rules()Return a List of all registered Rule instances, or a zero-length List if there are no registered Rule instances.java.util.List<Rule>WithDefaultsRulesWrapper. rules()Gets all rulesMethods in org.apache.commons.digester with parameters of type Rule Modifier and Type Method Description voidAbstractRulesImpl. add(java.lang.String pattern, Rule rule)Registers a new Rule instance matching the specified pattern.voidExtendedBaseRules. add(java.lang.String pattern, Rule rule)Register a new Rule instance matching the specified pattern.voidRules. add(java.lang.String pattern, Rule rule)Register a new Rule instance matching the specified pattern.voidRulesBase. add(java.lang.String pattern, Rule rule)Register a new Rule instance matching the specified pattern.voidWithDefaultsRulesWrapper. add(java.lang.String pattern, Rule rule)Adds a Rule to be fired on given pattern.voidWithDefaultsRulesWrapper. addDefault(Rule rule)Adds a rule to be fired when wrapped implementation returns no matchesvoidDigester. addRule(java.lang.String pattern, Rule rule)Register a new Rule matching the specified pattern.protected abstract voidAbstractRulesImpl. registerRule(java.lang.String pattern, Rule rule)Register rule at given pattern.protected voidRegexRules. registerRule(java.lang.String pattern, Rule rule)Register a new Rule instance matching the specified pattern. -
Uses of Rule in org.apache.commons.digester.annotations
Classes in org.apache.commons.digester.annotations with type parameters of type Rule Modifier and Type Interface Description interfaceAnnotationRuleProvider<A extends java.lang.annotation.Annotation,E extends java.lang.reflect.AnnotatedElement,R extends Rule>An object capable of providing instances ofRule.Methods in org.apache.commons.digester.annotations with type parameters of type Rule Modifier and Type Method Description <A extends java.lang.annotation.Annotation,E extends java.lang.reflect.AnnotatedElement,R extends Rule,T extends AnnotationRuleProvider<A,E,R>>
voidFromAnnotationsRuleSet. addRuleProvider(java.lang.String pattern, java.lang.Class<T> klass, A annotation, E element)Builds and register anAnnotationRuleProviderfor a specific pattern.<T extends AnnotationRuleProvider<? extends java.lang.annotation.Annotation,? extends java.lang.reflect.AnnotatedElement,? extends Rule>>
TFromAnnotationsRuleSet. getProvider(java.lang.String pattern, java.lang.Class<T> providerClass)Retrieves a specific instance of theAnnotationRuleProviderfor the input pattern.Methods in org.apache.commons.digester.annotations that return types with arguments of type Rule Modifier and Type Method Description java.lang.Class<? extends AnnotationRuleProvider<? extends java.lang.annotation.Annotation,? extends java.lang.reflect.AnnotatedElement,? extends Rule>>providedBy()Define theAnnotationRuleProviderthat builds theRulerelated to the digester rule.java.lang.Class<? extends Rule>reflectsRule()The reflected commons-digester rule.Method parameters in org.apache.commons.digester.annotations with type arguments of type Rule Modifier and Type Method Description voidFromAnnotationsRuleSet. addRuleProvider(java.lang.String pattern, AnnotationRuleProvider<? extends java.lang.annotation.Annotation,? extends java.lang.reflect.AnnotatedElement,? extends Rule> ruleProvider)Register anAnnotationRuleProviderfor a specific pattern. -
Uses of Rule in org.apache.commons.digester.annotations.internal
Methods in org.apache.commons.digester.annotations.internal with type parameters of type Rule Modifier and Type Method Description <T extends AnnotationRuleProvider<? extends java.lang.annotation.Annotation,? extends java.lang.reflect.AnnotatedElement,? extends Rule>>
TDefaultAnnotationRuleProviderFactory. newInstance(java.lang.Class<T> type)Return anAnnotationRuleProviderinstance of the specified type. -
Uses of Rule in org.apache.commons.digester.annotations.spi
Methods in org.apache.commons.digester.annotations.spi with type parameters of type Rule Modifier and Type Method Description <T extends AnnotationRuleProvider<? extends java.lang.annotation.Annotation,? extends java.lang.reflect.AnnotatedElement,? extends Rule>>
TAnnotationRuleProviderFactory. newInstance(java.lang.Class<T> type)Return anAnnotationRuleProviderinstance of the specified type. -
Uses of Rule in org.apache.commons.digester.plugins
Subclasses of Rule in org.apache.commons.digester.plugins Modifier and Type Class Description classPluginCreateRuleAllows the original rules for parsing the configuration file to define points at which plugins are allowed, by configuring a PluginCreateRule with the appropriate pattern.classPluginDeclarationRuleA Digester rule which allows the user to pre-declare a class which is to be referenced later at a plugin point by a PluginCreateRule.Methods in org.apache.commons.digester.plugins that return types with arguments of type Rule Modifier and Type Method Description java.util.List<Rule>PluginRules. match(java.lang.String path)Deprecated.Call match(namespaceURI,pattern) instead.java.util.List<Rule>PluginRules. match(java.lang.String namespaceURI, java.lang.String path)Return a List of all registered Rule instances that match the specified nodepath, or a zero-length List if there are no matches.java.util.List<Rule>PluginRules. rules()Return the list of rules registered with this object, in the order they were registered with this object.Methods in org.apache.commons.digester.plugins with parameters of type Rule Modifier and Type Method Description voidPluginRules. add(java.lang.String pattern, Rule rule)Register a new Rule instance matching the specified pattern.Method parameters in org.apache.commons.digester.plugins with type arguments of type Rule Modifier and Type Method Description voidPluginCreateRule. fireBeginMethods(java.util.List<Rule> rules, java.lang.String namespace, java.lang.String name, org.xml.sax.Attributes list)Duplicate the processing that the Digester does when firing the begin methods of rules.voidPluginCreateRule. fireEndMethods(java.util.List<Rule> rules, java.lang.String namespaceURI, java.lang.String name)Duplicate the processing that the Digester does when firing the end methods of rules. -
Uses of Rule in org.apache.commons.digester.xmlrules
Subclasses of Rule in org.apache.commons.digester.xmlrules Modifier and Type Class Description protected classDigesterRuleParser.SetNestedPropertiesAliasRuleA rule for adding a attribute-property alias to the custom alias mappings of the containing SetNestedPropertiesRule rule.protected classDigesterRuleParser.SetPropertiesAliasRuleA rule for adding a attribute-property alias to the custom alias mappings of the containing SetPropertiesRule rule.Methods in org.apache.commons.digester.xmlrules with parameters of type Rule Modifier and Type Method Description voidDigesterRuleParser. add(Rule rule)Adds a rule the the target digester.
-