3 |
import org.apache.commons.lang3.StringUtils; |
import org.apache.commons.lang3.StringUtils; |
4 |
import org.apache.commons.lang3.text.WordUtils; |
import org.apache.commons.lang3.text.WordUtils; |
5 |
|
|
6 |
|
import dk.daoas.daoadresseservice.beans.Address; |
7 |
|
|
8 |
public class AddressUtils { |
public class AddressUtils { |
9 |
|
|
10 |
public static class SplitResult { |
public static class SplitResult { |
77 |
String parts[] = bkrute.split("/"); |
String parts[] = bkrute.split("/"); |
78 |
|
|
79 |
if (parts.length != 4) { |
if (parts.length != 4) { |
|
System.out.println(">BK " + bkrute); |
|
80 |
return bkrute; |
return bkrute; |
81 |
} |
} |
82 |
|
|
295 |
|
|
296 |
} |
} |
297 |
|
|
298 |
|
public static void updateDaekningstype(Address a) { |
299 |
|
if (a.rute != null && a.rute.length()> 0) { |
300 |
|
a.daekningsType = DaekningsType.DAEKNING_DIREKTE; |
301 |
|
} else { |
302 |
|
a.daekningsType = DaekningsType.DAEKNING_IKKEDAEKKET; |
303 |
|
} |
304 |
|
} |
305 |
|
|
306 |
} |
} |
307 |
|
|
308 |
|
|