KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > notification > filter > etcl > ImmutableEvaluationResult


1 package org.jacorb.notification.filter.etcl;
2
3 import org.jacorb.notification.filter.EvaluationResult;
4
5 /*
6  * JacORB - a free Java ORB
7  *
8  * Copyright (C) 1999-2004 Gerald Brose
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Library General Public
12  * License as published by the Free Software Foundation; either
13  * version 2 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Library General Public License for more details.
19  *
20  * You should have received a copy of the GNU Library General Public
21  * License along with this library; if not, write to the Free
22  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23  *
24  */

25
26 /**
27  * @author Alphonse Bendt
28  * @version $Id: ImmutableEvaluationResult.java,v 1.4 2005/02/14 00:07:08 alphonse.bendt Exp $
29  */

30
31 public class ImmutableEvaluationResult extends EvaluationResult
32 {
33     static void unsupported(String JavaDoc message)
34     {
35         throw new UnsupportedOperationException JavaDoc(message);
36     }
37
38     public void reset()
39     {
40         unsupported("reset");
41     }
42
43     public void setString(String JavaDoc s)
44     {
45         unsupported("setString(" + s + ")");
46     }
47
48     public void setFloat(float f)
49     {
50         unsupported("setFloat(" + f + ")");
51     }
52
53     public void setFloat(Double JavaDoc d)
54     {
55         unsupported("setFloat(" + d + ")");
56     }
57
58     public void setInt(int i)
59     {
60         unsupported("setInt(" + i + ")");
61     }
62
63     public void setInt(Double JavaDoc i)
64     {
65         unsupported("setInt(" + i + ")");
66     }
67
68     public void setBool(boolean b)
69     {
70         unsupported("setBool(" + b + ")");
71     }
72 }
Popular Tags