added a mustang/konik comparison, fail on import without parse

This commit is contained in:
Jochen Staerk
2015-11-02 18:26:55 +01:00
parent f2da46b559
commit ce21566e03
2 changed files with 21 additions and 2 deletions

Binary file not shown.

View File

@@ -15,6 +15,7 @@ import java.io.BufferedInputStream;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.util.Map; import java.util.Map;
import javax.management.RuntimeErrorException;
import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.ParserConfigurationException;
@@ -290,18 +291,24 @@ public class ZUGFeRDImporter {
} }
public String getForeignReference() { public String getForeignReference() {
if (rawXML==null) {
throw new RuntimeException("use parse() before requesting a value");
}
return foreignReference; return foreignReference;
} }
public void setForeignReference(String foreignReference) { private void setForeignReference(String foreignReference) {
this.foreignReference = foreignReference; this.foreignReference = foreignReference;
} }
public String getBIC() { public String getBIC() {
if (rawXML==null) {
throw new RuntimeException("use parse() before requesting a value");
}
return BIC; return BIC;
} }
@@ -319,23 +326,32 @@ public class ZUGFeRDImporter {
public String getIBAN() { public String getIBAN() {
if (rawXML==null) {
throw new RuntimeException("use parse() before requesting a value");
}
return IBAN; return IBAN;
} }
public String getBankName() { public String getBankName() {
if (rawXML==null) {
throw new RuntimeException("use parse() before requesting a value");
}
return bankName; return bankName;
} }
public void setIBAN(String IBAN) { private void setIBAN(String IBAN) {
this.IBAN = IBAN; this.IBAN = IBAN;
} }
public String getHolder() { public String getHolder() {
if (rawXML==null) {
throw new RuntimeException("use parse() before requesting a value");
}
return holder; return holder;
} }
@@ -348,6 +364,9 @@ public class ZUGFeRDImporter {
public String getAmount() { public String getAmount() {
if (rawXML==null) {
throw new RuntimeException("use parse() before requesting a value");
}
return amount; return amount;
} }