• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the  "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 /*
19  * $Id$
20  */
21 
22 /*
23  *
24  * NullDatalet.java
25  *
26  */
27 package org.apache.qetest;
28 
29 import java.util.Hashtable;
30 
31 /**
32  * A default implementation of a Datalet with no data points.
33  * "Conversation... is the art of never appearing a bore, of
34  * knowing how to say everything interestingly, to entertain with
35  * no matter what, to be charming with nothing at all."
36  * -- Guy de Maupassant, <u>Sur l'Eau</u>
37  *
38  * @author Shane_Curcuru@lotus.com
39  * @version $Id$
40  */
41 public class NullDatalet implements Datalet
42 {
43 
44     /**
45      * Default no-arg, no-op constructor.
46      */
NullDatalet()47     public NullDatalet() { } // no-op
48 
49 
50     /**
51      * Accesor method for a brief description of this NullDatalet.
52      *
53      * @return String "NullDatalet: no data contained".
54      */
getDescription()55     public String getDescription()
56     {
57         return "NullDatalet: no data contained";
58     }
59 
60 
61     /**
62      * Accesor method for a brief description of this NullDatalet.
63      *
64      * @param s unused, you cannot set our description
65      */
setDescription(String s)66     public void setDescription(String s) { } // no-op
67 
68 
69     /**
70      * Load fields of this NullDatalet from a Hashtable.
71      *
72      * @param Hashtable unused, you cannot set our fields
73      */
load(Hashtable h)74     public void load(Hashtable h) { } // no-op
75 
76 
77     /**
78      * Load fields of this NullDatalet from an array.
79      *
80      * @param args unused, you cannot set our fields
81      */
load(String[] args)82     public void load(String[] args) { } // no-op
83 
84 
85 }  // end of class NullDatalet
86 
87