Debian Codegraph @

src/uk/me/parabola/imgfmt/app/mdr/Mdr11Record.java

raw symbols SCIP
1 /*
2 * Copyright (C) 2009.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 or
6 * version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
12 */
13
14 package uk.me.parabola.imgfmt.app.mdr;
15
16 /**
17 * The details required to write a POI record to mdr 11.
18 * @author Steve Ratcliffe
19 */
20 public class Mdr11Record extends RecordBase implements NamedRecord {
21 private int pointIndex;
22 private int subdiv;
23 private int lblOffset;
24 private int strOffset;
25 private int recordNumber;
26 private String name;
27 private Mdr5Record city;
28 private boolean isCity;
29 private int type;
30
31 public boolean isCity() {
32 return isCity;
33 }
34
35 public void setIsCity(boolean isCity) {
36 this.isCity = isCity;
37 }
38
39 public int getPointIndex() {
40 return pointIndex;
41 }
42
43 public void setPointIndex(int pointIndex) {
44 this.pointIndex = pointIndex;
45 }
46
47 public int getSubdiv() {
48 return subdiv;
49 }
50
51 public void setSubdiv(int subdiv) {
52 this.subdiv = subdiv;
53 }
54
55 public int getLblOffset() {
56 return lblOffset;
57 }
58
59 public void setLblOffset(int lblOffset) {
60 this.lblOffset = lblOffset;
61 }
62
63 public int getCityIndex() {
64 return city == null ? 0 : city.getGlobalCityIndex();
65 }
66
67 public int getRegionIndex() {
68 return city == null ? 0 : city.getRegionIndex();
69 }
70
71 public int getStrOffset() {
72 return strOffset;
73 }
74
75 public void setStrOffset(int strOffset) {
76 this.strOffset = strOffset;
77 }
78
79 public int getRecordNumber() {
80 return recordNumber;
81 }
82
83 public void setRecordNumber(int recordNumber) {
84 this.recordNumber = recordNumber;
85 }
86
87 public String getName() {
88 assert name!=null;
89 return name;
90 }
91
92 public void setName(String name) {
93 assert name!=null;
94 this.name = name;
95 }
96
97 public void setCity(Mdr5Record city) {
98 this.city = city;
99 }
100
101 public void setType(int type) {
102 this.type = type;
103 }
104
105 public int getType() {
106 return type;
107 }
108 }