Skip to content

Commit

Permalink
Added ISO-Date Getter function
Browse files Browse the repository at this point in the history
Added Wrapper method for protected extractString method, for easy extension of ZUGFeRDImporter.java
  • Loading branch information
aberndt-hub committed May 19, 2020
1 parent 82fc009 commit 3a01efb
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,25 @@ protected String extractString(String xpathStr) {
}


/**
* 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
*/
Expand Down

0 comments on commit 3a01efb

Please sign in to comment.