KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ist > coach > coachEmfServices > EmfBasicLog > CheckAnyValueValidity


1 package ist.coach.coachEmfServices.EmfBasicLog;
2
3 import org.omg.CORBA.Any JavaDoc;
4 import org.omg.CORBA.TCKind JavaDoc;
5
6 public class CheckAnyValueValidity {
7
8     /************************************************************************/
9     /* METHOD 'checkAny' */
10     /************************************************************************/
11         public boolean checkAny(Any JavaDoc inParam)
12     {
13
14         boolean res = false;
15
16         if ( inParam != null )
17         {
18             if ((inParam.type()).kind() == TCKind.tk_string) { res = true; }
19             if ((inParam.type()).kind() == TCKind.tk_boolean) { res = true; }
20             if ((inParam.type()).kind() == TCKind.tk_double) { res = true; }
21             if ((inParam.type()).kind() == TCKind.tk_float) { res = true; }
22             if ((inParam.type()).kind() == TCKind.tk_ulong) { res = true; }
23             if ((inParam.type()).kind() == TCKind.tk_long) { res = true; }
24             if ((inParam.type()).kind() == TCKind.tk_short) { res = true; }
25         }
26
27         return res;
28
29     } // End of Method 'checkAny'
30

31 } // End of Class 'CheckAnyValueValidity '
32
Popular Tags