Added ISO-Date Getter function

Added Wrapper method for protected extractString method, for easy extension of ZUGFeRDImporter.java
This commit is contained in:
Alexander Berndt
2020-05-19 08:31:21 +02:00
parent 82fc009fb3
commit 3a01efbded

View File

@@ -234,6 +234,25 @@ public class ZUGFeRDImporter {
}
/**
* Wrapper for protected method
* @return the extracted String for the specific path in the document
*/
public String wExtractString(String xpathStr) {
return extractString(xpathStr);
}
/**
* @return an ISO XXX coded datetime string
*/
public String getISOdate(String xpathString) {
String date = extractString(xpathString);
//do some conversion magic here
return date;
}
/**
* @return the reference (purpose) the sender specified for this invoice
*/