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.Rule;
20 import org.apache.jetspeed.om.portlet.impl.PortletApplicationDefinitionImpl;
21 import org.xml.sax.Attributes;
22
23 /***
24 * @author <a href="mailto:weaver@apache.org">Scott T. Weaver</a>
25 */
26 public class PortletApplicationRule extends Rule
27 {
28 protected String appName;
29
30 public PortletApplicationRule(String appName)
31 {
32 this.appName = appName;
33 }
34
35
36 /***
37 * <p>
38 * begin
39 * </p>
40 *
41 * @see org.apache.commons.digester.Rule#begin(java.lang.String, java.lang.String, org.xml.sax.Attributes)
42 * @param arg0
43 * @param arg1
44 * @param arg2
45 * @throws java.lang.Exception
46 */
47 public void begin( String arg0, String arg1, Attributes arg2 ) throws Exception
48 {
49 PortletApplicationDefinitionImpl app = new PortletApplicationDefinitionImpl();
50 app.setName(appName);
51 digester.push(app);
52 }
53
54
55 /***
56 * <p>
57 * end
58 * </p>
59 *
60 * @see org.apache.commons.digester.Rule#end(java.lang.String, java.lang.String)
61 * @param arg0
62 * @param arg1
63 * @throws java.lang.Exception
64 */
65 public void end( String arg0, String arg1 ) throws Exception
66 {
67
68 }
69 }