private static Interval<?, ?> parseInterval( String interval, ValueType type ) {
Interval<?, ?> result = null;
String[] split = interval.split( "/" );
if ( split.length == 2 || split.length == 3 ) {
String min = split[0];
String max = split[1];
String res = null;
if ( split.length == 3 ) {
res = split[2];
}
SingleValue<?> spacing = res == null ? null : SingleValue.createFromString( ValueType.Void.name(), res );
result = Interval.createFromStrings( type.toString(), min, max, Closure.closed, null, false, spacing );
} else {
LOG.warn( "Given intervall: " + interval + " has not enough values, maybe a default value is ment?" );
}
return result;
}