[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Thu Dec 7 18:41:00 UTC 2006


gordonp
Thu Dec  7 13:41:00 EST 2006
Update of /home/repository/moby/moby-live/Java/src/Clients
In directory dev.open-bio.org:/tmp/cvs-serv30475/src/Clients

Modified Files:
	TestingCentral.java 
Log Message:
Updates for secondary param data type checking
moby-live/Java/src/Clients TestingCentral.java,1.9,1.10
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/Clients/TestingCentral.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- /home/repository/moby/moby-live/Java/src/Clients/TestingCentral.java	2005/10/27 04:15:23	1.9
+++ /home/repository/moby/moby-live/Java/src/Clients/TestingCentral.java	2006/12/07 18:41:00	1.10
@@ -87,7 +87,11 @@
      *************************************************************************/
     protected MobySecondaryData createSecondaryData (String objectName, String type) {
 	MobySecondaryData data = new MobySecondaryData (objectName);
-	data.setDataType (type);
+	try{
+            data.setDataType (type);
+        } catch(Exception e){
+            e.printStackTrace(); // will default to String if unrecognized 
+        }
 	if (type.equalsIgnoreCase ("Integer")) {
 	    data.setDefaultValue ("123");
 	    data.setMaximumValue (234);




More information about the MOBY-guts mailing list