Subversion Repositories mkgmap

Rev

Rev 1995 | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*
 * Copyright (C) 2009.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 or
 * version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 */

package uk.me.parabola.imgfmt.app.mdr;

/**
 * Holds details of a single street.
 * @author Steve Ratcliffe
 */

public class Mdr7Record extends RecordBase implements NamedRecord {
        private int labelOffset;
        private int stringOffset;
        private String name;
        private int index;
        private Mdr5Record city;

        public int getLabelOffset() {
                return labelOffset;
        }

        public void setLabelOffset(int labelOffset) {
                this.labelOffset = labelOffset;
        }

        public int getStringOffset() {
                return stringOffset;
        }

        public void setStringOffset(int stringOffset) {
                this.stringOffset = stringOffset;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public void setIndex(int index) {
                this.index = index;
        }

        public int getIndex() {
                return index;
        }

        public void setCity(Mdr5Record city) {
                this.city = city;
        }

        public Mdr5Record getCity() {
                return city;
        }

        public String toString() {
                return name + " in " + city.getName();
        }
}