git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngine@85773 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
5764304911
commit
aeb215469a
|
@ -76,9 +76,14 @@ public class DataTypeRecognizer {
|
|||
|
||||
public static String guessType(ArrayList<String> elementlist, boolean restricted) {
|
||||
|
||||
|
||||
// 0 = String 1 = Boolean 2 = Decimal
|
||||
int[] scores = new int[3];
|
||||
String[] types = { String.class.getName(), Boolean.class.getName(), BigDecimal.class.getName() };
|
||||
|
||||
if (elementlist==null || elementlist.size()==0)
|
||||
return types[0];
|
||||
|
||||
for (String element : elementlist) {
|
||||
Object guessedObj = guessType(element);
|
||||
if (guessedObj instanceof String) {
|
||||
|
|
Loading…
Reference in New Issue