01: /*
02: * Copyright 2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.apache.myfaces.config.impl.digester.elements;
17:
18: import java.util.ArrayList;
19: import java.util.List;
20: import java.util.Collection;
21:
22: import org.apache.myfaces.config.impl.digester.elements.NavigationCase;
23:
24: /**
25: * @author <a href="mailto:oliver@rossmueller.com">Oliver Rossmueller</a>
26: */
27: public class NavigationRule implements
28: org.apache.myfaces.config.element.NavigationRule {
29:
30: private String fromViewId;
31: private List<NavigationCase> navigationCases = new ArrayList<NavigationCase>();
32:
33: public String getFromViewId() {
34: return fromViewId;
35: }
36:
37: public void setFromViewId(String fromViewId) {
38: this .fromViewId = fromViewId;
39: }
40:
41: public void addNavigationCase(NavigationCase value) {
42: navigationCases.add(value);
43: }
44:
45: public Collection<NavigationCase> getNavigationCases() {
46: return navigationCases;
47: }
48:
49: }
|