01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * 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 and
15: * limitations under the License.
16: */
17: package org.apache.jetspeed.om.folder.psml;
18:
19: import org.apache.jetspeed.om.folder.MenuIncludeDefinition;
20:
21: /**
22: * This class implements the MenuIncludeDefinition
23: * interface in a persistent object form for use by
24: * the page manager component.
25: *
26: * @author <a href="mailto:rwatler@apache.org">Randy Watler</a>
27: * @version $Id: MenuIncludeDefinitionImpl.java 516448 2007-03-09 16:25:47Z ate $
28: */
29: public class MenuIncludeDefinitionImpl implements MenuIncludeDefinition {
30: /**
31: * name - name of menu to include
32: */
33: private String name;
34:
35: /**
36: * nest - nesting flag for included menu
37: */
38: private boolean nest;
39:
40: /**
41: * MenuIncludeDefinitionImpl - constructor
42: */
43: public MenuIncludeDefinitionImpl() {
44: }
45:
46: /**
47: * getName - get menu name to nest or with options to include
48: *
49: * @return menu name
50: */
51: public String getName() {
52: return name;
53: }
54:
55: /**
56: * setName - set menu name to nest or with options to include
57: *
58: * @param name menu name
59: */
60: public void setName(String name) {
61: this .name = name;
62: }
63:
64: /**
65: * isNest - get nesting for included menu
66: *
67: * @return nest options flag
68: */
69: public boolean isNest() {
70: return nest;
71: }
72:
73: /**
74: * setNest - set nesting for included menu
75: *
76: * @param nest nest menu flag
77: */
78: public void setNest(boolean nest) {
79: this.nest = nest;
80: }
81: }
|