/[projects]/android/TrainInfoCommon/src/dk/thoerup/android/traininfo/common/StationEntry.java
ViewVC logotype

Diff of /android/TrainInfoCommon/src/dk/thoerup/android/traininfo/common/StationEntry.java

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

revision 1551 by torben, Mon May 2 16:22:10 2011 UTC revision 1552 by torben, Fri Jul 8 11:54:56 2011 UTC
# Line 35  public class StationEntry implements Ser Line 35  public class StationEntry implements Ser
35          private boolean isMetro = false;          private boolean isMetro = false;
36          //@Element(name="metrocode", required=false) //only needed for transfer to google service          //@Element(name="metrocode", required=false) //only needed for transfer to google service
37          private String metro = null;          private String metro = null;
38                                    
39          @Element          @Element
40          private String address;          private String address;
41                    
# Line 45  public class StationEntry implements Ser Line 45  public class StationEntry implements Ser
45          @Element(required=false)          @Element(required=false)
46          private String aliases[];          private String aliases[];
47                    
48            /*used client side - do not serialize */
49            transient public String nameLower;
50            transient public String nameInternational;
51            
52            public void updateSearch() {            
53                    this.nameLower = name.toLowerCase();
54                    this.nameInternational = name.toLowerCase().replace("æ", "ae").replace("ø", "oe").replace("å", "aa");
55            }
56            
57                    
58          public int getId() {          public int getId() {
59                  return id;                  return id;

Legend:
Removed from v.1551  
changed lines
  Added in v.1552

  ViewVC Help
Powered by ViewVC 1.1.20