01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-app/src/java/test/org/sakaiproject/tool/assessment/jsf/LinksModelBean.java $
03: * $Id: LinksModelBean.java 1295 2005-08-19 17:25:46Z esmiley@stanford.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2005 The Regents of the University of Michigan, Trustees of Indiana University,
07: * Board of Trustees of the Leland Stanford, Jr., University, and The MIT Corporation
08: *
09: * Licensed under the Educational Community License Version 1.0 (the "License");
10: * By obtaining, using and/or copying this Original Work, you agree that you have read,
11: * understand, and will comply with the terms and conditions of the Educational Community License.
12: * You may obtain a copy of the License at:
13: *
14: * http://cvs.sakaiproject.org/licenses/license_1_0.html
15: *
16: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
17: * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
18: * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
19: * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20: * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21: *
22: **********************************************************************************/package test.org.sakaiproject.tool.assessment.jsf;
23:
24: import java.io.Serializable;
25:
26: /**
27: * <p> test bean</p>
28: * @author Ed Smiley esmiley@stanford.edu
29: * @version $Id: LinksModelBean.java 1295 2005-08-19 17:25:46Z esmiley@stanford.edu $
30: */
31:
32: public class LinksModelBean implements Serializable {
33: private java.util.ArrayList linkListList;
34:
35: public LinksModelBean() {
36: linkListList = new java.util.ArrayList();
37: for (int i = 0; i < 20; i++) {
38: linkListList.add(new TestLinksBean());
39: }
40: }
41:
42: public java.util.ArrayList getLinkListList() {
43: return linkListList;
44: }
45:
46: public void setLinkListList(java.util.ArrayList linkListList) {
47: this .linkListList = linkListList;
48: }
49:
50: public static void main(String args[]) {
51: LinksModelBean bean = new LinksModelBean();
52: java.util.ArrayList list = bean.getLinkListList();
53:
54: for (int i = 0; i < list.size(); i++) {
55: }
56: }
57:
58: }
|