Code example for BigDecimal

Methods: toPlainString

0
        final Element renewElement = xmlWriter.appendChild(extensionElement, "renew",
                ExtendedObjectType.PRICE.getURI()); 
        Element ackElement = xmlWriter.appendChild(renewElement, "ack");
 
        if (renewalPrice != null) {
            xmlWriter.appendChild(ackElement, "renewalPrice").setTextContent(renewalPrice.toPlainString());
        } 
    } 
 
    public void setRenewalPrice(BigDecimal renewalPrice) {
        this.renewalPrice = renewalPrice;
    } 
}