1 19 package org.enhydra.zeus.util; 20 21 29 public class SchemaUtils { 30 31 46 public static String getJavaType(String schemaType) 47 throws UnsupportedSchemaTypeException { 48 49 if (schemaType == null) { 50 throw new IllegalArgumentException ("A non-null schema type must " + 51 "be supplied to SchemaUtils methods."); 52 } 53 54 if (schemaType.equals("string")) { 55 return "String"; 56 } 57 58 throw new UnsupportedSchemaTypeException(schemaType); 60 } 61 } 62 | Popular Tags |