OSDN Git Service

how to mirror to SourceForge.jp
[xerial/xerial-core.git] / src / test / java / org / xerial / util / bean / impl / SampleList.java
1 /*--------------------------------------------------------------------------
2  *  Copyright 2007 Taro L. Saito
3  *
4  *  Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
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 //--------------------------------------
17 // XerialJ
18 //
19 // SampleList.java
20 // Since: Dec 19, 2007 5:25:46 PM
21 //
22 // $URL$
23 // $Author$
24 //--------------------------------------
25 package org.xerial.util.bean.impl;
26
27 import java.util.ArrayList;
28
29 import org.xerial.util.log.Logger;
30
31 public class SampleList
32 {
33     private static Logger _logger = Logger.getLogger(SampleList.class); 
34     private ArrayList<Sample> sampleList = new ArrayList<Sample>(); 
35     private String listName;
36     
37     public String getListName()
38     {
39         return listName;
40     }
41
42     public void setListName(String listName)
43     {
44         this.listName = listName;
45     }
46
47     public SampleList()
48     {}
49     
50     public void addSample(Sample s)
51     {
52         _logger.trace("add: " + s);
53         sampleList.add(s);
54     }
55
56     public ArrayList<Sample> getSampleList()
57     {
58         return sampleList;
59     }
60
61         
62 }