1 package org.lsst.ccs.config;
2
3
4
5
6
7
8
9
10 public class TypeInfos {
11
12 static String[][] table = {
13 {"java.lang.Integer", "integer (example : 6)"} ,
14 {"java.lang.String", "String"} ,
15 {"java.lang.Double", "double (example : 3.0)"} ,
16 {"java.lang.Float", "float (example : 3.0)"} ,
17 {"java.lang.Boolean", "boolean (example : true)"} ,
18 {"[I", "array of integers (example : [1,34,666] )"} ,
19 {"[D", "array of doubles (example : [1.0,34.0,666.66] )"} ,
20 {"[F", "array of floats (example : [1.0,34.0,666.66] )"} ,
21 {"[Ljava.lang.String;", "array of Strings (example : ['hello', 'world'] )"} ,
22 {"org.lsst.gruth.org.lsst.gruth.types.GList", "List (example : [23, 34,55])"} ,
23 {"org.lsst.gruth.org.lsst.gruth.types.GMap", "Map (example : [length:23, width:44])"} ,
24 } ;
25 public static String get(String typeName) {
26 String res = typeName ;
27 for(String[] keyVal : table) {
28 if(keyVal[0].equals(typeName)){
29 return keyVal[1] ;
30 }
31 }
32 return res ;
33 }
34 }