added a mustang/konik comparison, fail on import without parse
This commit is contained in:
BIN
mustang/doc/konikmustangvergleich.odt
Normal file
BIN
mustang/doc/konikmustangvergleich.odt
Normal file
Binary file not shown.
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user