KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > betwixt > nowrap > POTest


1 /*
2  * Copyright 2001-2004 The Apache Software Foundation.
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 package org.apache.commons.betwixt.nowrap;
18
19 import java.util.ArrayList JavaDoc;
20 import java.util.List JavaDoc;
21
22
23 public class POTest
24 {
25     private static final boolean debug = false;
26
27     private List JavaDoc componentTests;
28
29     private String JavaDoc printingNumber = "";
30
31     public POTest()
32     {
33         if (debug) System.out.println("-- INSTANTIATING NEW PO");
34         componentTests = new ArrayList JavaDoc();
35     }
36
37     public List JavaDoc getComponenttests()
38     {
39         if (debug) System.out.println("-- GET PO.getComponents");
40         return this.componentTests;
41     }
42
43     public void setComponenttests(List JavaDoc componentTests)
44     {
45     }
46
47     public void addComponenttest(Componenttest c)
48     {
49         if (debug) System.out.println("-- ADD PO.addComponent");
50         componentTests.add(c);
51     }
52
53     public void setPrintingNumber(String JavaDoc s)
54     {
55         if (debug) System.out.println("-- SET PO.setPrintingNumber");
56         printingNumber = s;
57     }
58
59     public String JavaDoc getPrintingNumber()
60     {
61         if (debug) System.out.println("-- GET PO.getPrintingNumber");
62         return printingNumber;
63     }
64 }
65
Popular Tags