1 /**
2 * Copyright 2005-2011 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
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.kuali.rice.krad.util.spring;
17
18 import java.util.LinkedList;
19 import java.util.List;
20
21 /**
22 * This class can be used to group items in spring for later retrieval by list name. Order is important, because it is used to
23 * facilitate overrides.
24 */
25 public class NamedOrderedListBean {
26 private String name;
27 private List<String> list;
28
29 public NamedOrderedListBean() {
30 list = new LinkedList();
31 }
32
33 public void setListItem(String listItem) {
34 list.add(listItem);
35 }
36
37 public void setListItems(List<String> listItems) {
38 list.addAll(listItems);
39 }
40
41 public List<String> getList() {
42 return list;
43 }
44
45 public String getName() {
46 return name;
47 }
48
49 public void setName(String name) {
50 this.name = name;
51 }
52 }