FileDocCategorySizeDatePackage
TldRuleSet.javaAPI DocGlassfish v2 API4068Fri May 04 22:32:30 BST 2007org.apache.catalina.startup

TldRuleSet

public class TldRuleSet extends com.sun.org.apache.commons.digester.RuleSetBase

RuleSet for processing the contents of a tag library descriptor resource.

author
Craig R. McClanahan
version
$Revision: 1.5 $ $Date: 2007/05/05 05:32:29 $

Fields Summary
protected String
prefix
The matching pattern prefix to use for recognizing our elements.
Constructors Summary
public TldRuleSet()
Construct an instance of this RuleSet with the default matching pattern prefix.



    // ------------------------------------------------------------ Constructor


                     
      

        this("");

    
public TldRuleSet(String prefix)
Construct an instance of this RuleSet with the specified matching pattern prefix.

param
prefix Prefix for matching pattern rules (including the trailing slash character)


        super();
        this.namespaceURI = null;
        this.prefix = prefix;

    
Methods Summary
public voidaddRuleInstances(com.sun.org.apache.commons.digester.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). This method should only be called by a Digester instance.

param
digester Digester instance to which the new Rule instances should be added.


        digester.addCallMethod(prefix + "taglib/uri",
                               "setTldUri", 0);

        digester.addCallMethod(prefix + "taglib/listener/listener-class",
                               "addApplicationListener", 0);