Debian Codegraph @

src/uk/me/parabola/imgfmt/FileSystemParam.java

raw symbols SCIP
1 /*
2 * Copyright (C) 2006, 2011.
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 package uk.me.parabola.imgfmt;
14
15 /**
16 * Small class to hold all kinds of filesystem parameters. If a field
17 * is not set then it is not used.
18 *
19 * @author Steve Ratcliffe
20 */
21 public class FileSystemParam {
22 private String filename;
23 private String mapDescription = "Open Street Map";
24 private int blockSize = 512;
25 private int directoryStartEntry = 2; // Always in terms of entries of 512 bytes
26 private int reservedDirectoryBlocks;
27 private boolean gmapsupp;
28 private boolean hideGmapsuppOnPC;
29 private int productVersion = -1; // means unset
30
31 public String getFilename() {
32 return filename;
33 }
34
35 public void setFilename(String filename) {
36 this.filename = filename;
37 }
38
39 public String getMapDescription() {
40 return mapDescription;
41 }
42
43 public void setMapDescription(String mapDescription) {
44 this.mapDescription = mapDescription;
45 if (this.mapDescription == null)
46 this.mapDescription = "";
47 }
48
49 public int getBlockSize() {
50 return blockSize;
51 }
52
53 public void setBlockSize(int blockSize) {
54 this.blockSize = blockSize;
55 }
56
57 public int getDirectoryStartEntry() {
58 return directoryStartEntry;
59 }
60
61 public void setDirectoryStartEntry(int directoryStartBlock) {
62 this.directoryStartEntry = directoryStartBlock;
63 }
64
65 public int getReservedDirectoryBlocks() {
66 return reservedDirectoryBlocks;
67 }
68
69 public void setReservedDirectoryBlocks(int blocks) {
70 this.reservedDirectoryBlocks = blocks;
71 }
72
73 public boolean isGmapsupp() {
74 return gmapsupp;
75 }
76
77 public void setGmapsupp(boolean gmapsupp) {
78 this.gmapsupp = gmapsupp;
79 }
80
81 public boolean isHideGmapsuppOnPC() {
82 return hideGmapsuppOnPC;
83 }
84
85 public void setHideGmapsuppOnPC(boolean hideGmapsuppOnPC) {
86 this.hideGmapsuppOnPC = hideGmapsuppOnPC;
87 }
88
89 public void setProductVersion(int version) {
90 this.productVersion = version;
91 }
92
93 public int getProductVersion() {
94 return productVersion;
95 }
96 }