/[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 2387 by torben, Thu Feb 26 14:43:20 2015 UTC revision 2399 by torben, Fri Feb 27 10:38:50 2015 UTC
# Line 72  public class AddressUtils { Line 72  public class AddressUtils {
72                          delStreng.append( indAdresse.charAt(i) );                          delStreng.append( indAdresse.charAt(i) );
73                          i++;                          i++;
74                  }                  }
75                  result.vej = WordUtils.capitalize( delStreng.toString().trim() );                  
76    
77                    result.vej = delStreng.toString().toLowerCase().trim();
78                    if ( result.vej.endsWith(".") || result.vej.endsWith(",")) {
79                            result.vej =  result.vej.substring(0, result.vej.length() - 1);
80                            result.vej = result.vej.trim();
81                    }
82                    
83                    //special case - hvis strengen ender med ' nr' skal ' nr' fjernes
84                    if ( result.vej.endsWith(" nr")) {
85                            result.vej =  result.vej.substring(0, result.vej.length() - 3);
86                    }
87                    
88                    result.vej = WordUtils.capitalize( result.vej.trim() );
89                                    
90    
91    

Legend:
Removed from v.2387  
changed lines
  Added in v.2399

  ViewVC Help
Powered by ViewVC 1.1.20