View Javadoc

1   /*
2    * The contents of this file are subject to the terms 
3    * of the Common Development and Distribution License 
4    * (the "License").  You may not use this file except 
5    * in compliance with the License.
6    * 
7    * You can obtain a copy of the license at 
8    * http://www.sun.com/cddl/cddl.html. 
9    * See the License for the specific language governing 
10   * permissions and limitations under the License.
11   * 
12   * When distributing Covered Code, include this CDDL 
13   * HEADER in each file and include the License file at 
14   * license.txt.  If applicable, add the following below 
15   * this CDDL HEADER, with the fields enclosed by brackets 
16   * "[]" replaced with your own identifying information: 
17   * Portions Copyright [yyyy] [name of copyright owner]
18   * 
19   * Portions Copyright 2004 eBay, Inc.
20   */
21  package com.ebay.carad.os.vitalsigns.templates;
22  
23  import java.util.Collections;
24  import java.util.List;
25  
26  /***
27   * Provides a straight list for things that need templatizable data.
28   * 
29   * @author Jeremy Kraybill
30   * @version $Id$
31   */
32  public class FixedDataProvider implements IMultiTemplatizableProvider {
33  
34  	private List mList = Collections.EMPTY_LIST;
35  
36  	/***
37  	 * IoC method to set the list data to provide.
38  	 * 
39  	 * @param data a list of lists
40  	 */
41  	public void setData(List data) {
42  		mList = data;
43  	}
44  
45  	public List getParameterList() {
46  		return mList;
47  	}
48  
49  }