1/*2 * Licensed to the Apache Software Foundation (ASF) under one or more3 * contributor license agreements. See the NOTICE file distributed with4 * this work for additional information regarding copyright ownership.5 * The ASF licenses this file to You under the Apache License, Version 2.06 * (the "License"); you may not use this file except in compliance with7 * the License. You may obtain a copy of the License at8 * 9 * http://www.apache.org/licenses/LICENSE-2.010 * 11 * Unless required by applicable law or agreed to in writing, software12 * distributed under the License is distributed on an "AS IS" BASIS,13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14 * See the License for the specific language governing permissions and15 * limitations under the License.16 */17packageorg.apache.jetspeed.util.descriptor;
1819import org.apache.commons.digester.Rule;
20import org.apache.jetspeed.om.portlet.impl.PortletApplicationDefinitionImpl;
21import org.xml.sax.Attributes;
2223/***24 * @author <a href="mailto:weaver@apache.org">Scott T. Weaver</a>25 */26publicclassPortletApplicationRuleextends Rule
27 {
28protected String appName;
2930publicPortletApplicationRule(String appName)
31 {
32this.appName = appName;
33 }
343536/***37 * <p>38 * begin39 * </p>40 *41 * @see org.apache.commons.digester.Rule#begin(java.lang.String, java.lang.String, org.xml.sax.Attributes)42 * @param arg043 * @param arg144 * @param arg245 * @throws java.lang.Exception46 */47publicvoid begin( String arg0, String arg1, Attributes arg2 ) throws Exception
48 {
49 PortletApplicationDefinitionImpl app = new PortletApplicationDefinitionImpl();
50 app.setName(appName);
51 digester.push(app);
52 }
535455/***56 * <p>57 * end58 * </p>59 *60 * @see org.apache.commons.digester.Rule#end(java.lang.String, java.lang.String)61 * @param arg062 * @param arg163 * @throws java.lang.Exception64 */65publicvoid end( String arg0, String arg1 ) throws Exception
66 {
67// digester.pop();68 }
69 }