Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
PoemGvisTypeConverter |
|
| 3.0;3 |
1 | package org.melati.admin; | |
2 | ||
3 | 3 | public class PoemGvisTypeConverter { |
4 | ||
5 | public static String convert(int poemType){ | |
6 | 7 | if (PoemGvisType.from(poemType) == null) // eg table types |
7 | 2 | return "string"; |
8 | else | |
9 | 5 | return PoemGvisType.from(poemType).gvisJsonTypeName(); |
10 | } | |
11 | ||
12 | } |