/[projects]/dao/DaoAdresseService/src/main/java/dk/daoas/daoadresseservice/AddressUtils.java
ViewVC logotype

Diff of /dao/DaoAdresseService/src/main/java/dk/daoas/daoadresseservice/AddressUtils.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2608 by torben, Sun May 24 08:49:41 2015 UTC revision 2609 by torben, Wed Jul 15 08:37:40 2015 UTC
# Line 3  package dk.daoas.daoadresseservice; Line 3  package dk.daoas.daoadresseservice;
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 {
# Line 75  public class AddressUtils { Line 77  public class AddressUtils {
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                                    
# Line 294  public class AddressUtils { Line 295  public class AddressUtils {
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    

Legend:
Removed from v.2608  
changed lines
  Added in v.2609

  ViewVC Help
Powered by ViewVC 1.1.20