1 package ist.coach.coachEmfServices.EmfBasicLog; 2 3 import org.omg.CORBA.Any ; 4 import org.omg.CORBA.TCKind ; 5 6 public class CheckAnyValueValidity { 7 8 9 10 11 public boolean checkAny(Any 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 } 31 } | Popular Tags |