// Second page fills these
private char delimiter;
- private boolean read;
+ private boolean readFirstAsHeader = true;
private Map<String, Character> delimiters;
- private Path wktFile;
+// private Path wktFile;
// Vertex import
private int xCoordIndex = -1;
private int componentMappingIndex = -1;
private Map<String, Resource> componentMappings = new HashMap<>();
private boolean isVertexImport;
+ private String sourceCRS;
+ private int tempIndex;
+ private int pressureIndex;
+ private int diameterIndex;
+ private int outerDiamterIndex;
+ private int nominalMassFlowIndex;
// Third page
}
public void setReadFirstAsHeader(boolean read) {
- this.read = read;
+ this.readFirstAsHeader = read;
}
public Path getSource() {
public Map<CSVHeader, List<String>> getHeaderAndRows(int amount) throws IOException {
if (source != null)
- return DistrictImportUtils.readCSVHeaderAndRows(source, delimiter, read, amount);
+ return DistrictImportUtils.readCSVHeaderAndRows(source, delimiter, readFirstAsHeader, amount);
else
return Collections.emptyMap();
}
public Map<String, Integer> getHeader() throws IOException {
Map<String, Integer> header = null;
if (source != null)
- header = DistrictImportUtils.readCSVHeader(source, delimiter, read);
+ header = DistrictImportUtils.readCSVHeader(source, delimiter, readFirstAsHeader);
if (header == null)
header = Collections.emptyMap();
return header;
}
public boolean getReadFirstAsHeader() {
- return read;
+ return readFirstAsHeader;
}
public String[] getDelimiterFormats() {
public List<Map<String, String>> readRows(int amount) throws IOException {
if (source != null)
- return DistrictImportUtils.readRows(source, delimiter, read, amount);
+ return DistrictImportUtils.readRows(source, delimiter, readFirstAsHeader, amount);
else
return Collections.emptyList();
}
return delimiter;
}
- public Path getWKTFile() {
- return wktFile;
- }
+// public Path getWKTFile() {
+// return wktFile;
+// }
public int getXCoordIndex() {
return xCoordIndex;
return targetDiagram;
}
- public void setWKTFile(Path wktFile) {
- this.wktFile = wktFile;
- }
+// public void setWKTFile(Path wktFile) {
+// this.wktFile = wktFile;
+// }
public void setComponentMappings(String value, Resource resource) {
componentMappings.put(value, resource);
return endZCoordIndex;
}
+ public void setSourceCRS(String crs) {
+ this.sourceCRS = crs;
+ }
+
+ public String getSourceCRS() {
+ return sourceCRS;
+ }
+
+ public void setTempIndex(int tempIndex) {
+ this.tempIndex = tempIndex;
+ }
+
+ public int getTempIndex() {
+ return tempIndex;
+ }
+
+ public void setPressureIndex(int pressureIndex) {
+ this.pressureIndex = pressureIndex;
+ }
+
+ public int getPressureIndex() {
+ return pressureIndex;
+ }
+
+ public void setDiameterIndex(int parseInt) {
+ this.diameterIndex = parseInt;
+ }
+
+ public int getDiameterIndex() {
+ return diameterIndex;
+ }
+
+ public void setOuterDiameterIndex(int parseInt) {
+ this.outerDiamterIndex = parseInt;
+ }
+
+ public int getOuterDiamterIndex() {
+ return outerDiamterIndex;
+ }
+
+ public void setNominalMassFlowIndex(int parseInt) {
+ this.nominalMassFlowIndex = parseInt;
+ }
+
+ public int getNominalMassFlowIndex() {
+ return nominalMassFlowIndex;
+ }
+
}