1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.util.descriptor;
18
19 import org.apache.commons.digester.Digester;
20 import org.apache.commons.digester.RuleSetBase;
21
22 /***
23 * @author <a href="mailto:weaver@apache.org">Scott T. Weaver</a>
24 */
25 public class PortletApplicationRuleSet extends RuleSetBase
26 {
27 protected String appName;
28
29 public PortletApplicationRuleSet(String appName)
30 {
31 this.appName = appName;
32 }
33
34 /***
35 * <p>
36 * addRuleInstances
37 * </p>
38 *
39 * @see org.apache.commons.digester.RuleSet#addRuleInstances(org.apache.commons.digester.Digester)
40 * @param arg0
41 */
42 public void addRuleInstances( Digester digester )
43 {
44 digester.addRule("portlet-app", new PortletApplicationRule(appName));
45 digester.addSetProperties("portlet-app", "id", "applicationIdentifier");
46 }
47
48 }