public class XmlParser
extends java.lang.Object
Constructor and Description |
---|
XmlParser(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
Entity |
getBuyerParty()
Returns an Entity that plays the role of Buyer party
|
java.lang.String |
getChargeAmount()
Returns the charge amount of the invoice
|
java.lang.String |
getCurrency()
Returns the currency code
|
java.lang.String |
getDiscountAmount()
Returns the discount amount of the invoice
|
java.util.Date |
getDueDate()
Return the due date of the invoice
|
Invoice |
getInvoice()
Returns an Invoice instance representing the XML file in EN16931 format.
|
java.lang.String |
getInvoiceID()
Returns the invoice identification.
|
java.util.Date |
getIssueDate()
Return the issue date for the invocie
|
java.lang.String |
getLineExtensionAmount()
Returns the line extension amount of the invoice.
|
java.util.ArrayList<InvoiceLine> |
getLines()
Returns an ArrayList of all the InvoiceLines of the Invoice
|
java.lang.String |
getPayableAmount()
Returns the payable amount of the invoice
|
Entity |
getSellerParty()
Returns the Entity that plays the role of Seller party.
|
java.lang.String |
getTaxExclusiveAmount()
Returns the tax exclusive amount of the invoice
|
java.lang.String |
getTaxInclusiveAmount()
Returns the tax inclusive amount of the invoice
|
public XmlParser(java.lang.String path) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
path
- a string representing a path to an XML fileorg.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public java.lang.String getInvoiceID() throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
public java.lang.String getCurrency() throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
public java.util.Date getIssueDate() throws javax.xml.xpath.XPathExpressionException, java.text.ParseException
javax.xml.xpath.XPathExpressionException
java.text.ParseException
public java.util.Date getDueDate() throws javax.xml.xpath.XPathExpressionException, java.text.ParseException
javax.xml.xpath.XPathExpressionException
java.text.ParseException
public java.lang.String getLineExtensionAmount() throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
public java.lang.String getTaxExclusiveAmount() throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
public java.lang.String getTaxInclusiveAmount() throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
public java.lang.String getPayableAmount() throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
public Entity getSellerParty() throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
public Entity getBuyerParty() throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
public java.util.ArrayList<InvoiceLine> getLines() throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
public java.lang.String getDiscountAmount() throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
public java.lang.String getChargeAmount() throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
public Invoice getInvoice() throws javax.xml.xpath.XPathExpressionException, java.text.ParseException
javax.xml.xpath.XPathExpressionException
java.text.ParseException