phax / ph-ubl

Java library for reading and writing UBL 2.0, 2.1, 2.2, 2.3 and 2.4 (CS01) documents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XmlAdapter

umitcel opened this issue · comments

Hello, great work,

I wonder if we can define custom XmlAdapter annotations for types.
Thank you.

Hi. Please elaborate a bit on what you need. It may be done by extended the ubl-jaxb-plugin???

Hi Philip,
For example I want amountType render as 2 decimal places. By the way I just handled it with scale property of BigDecimal.

Ah okay. Yes, these kind of requirements are better handled on the Java level :)