You can simple add the following method to your object definition:
void afterUnmarshal(Unmarshaller u, Object parent) {
...
}
It will be called once the current object has been completely deserialized.
See also the documentation about unmarshalling callbacks
More Related Contents:
- JAXB/Moxy Unmarshalling assigns all field values to Map rather than the specific field provided for it
- What is the role of ClassOutline / JClass / CClass in CodeModel?
- JAXB: How to marshal objects in lists?
- JAXB- @XmlMixed usage for reading @XmlValue and @XmlElement
- JAXB – Ignore element
- How to make JAXB unmarshaller to ignore prefixes?
- json.Unmarshal returning blank structure
- How to generate CDATA block using JAXB?
- Decoding generic JSON objects to one of many formats
- Validate JAXBElement in JPA/JAX-RS Web Service
- Difference of Maven JAXB plugins
- How do you specify the date format used when JAXB marshals xsd:dateTime?
- JAXB Mapping cyclic references to XML
- Android E/Parcelīš Class not found when unmarshalling (only on Samsung Tab3)
- Does JAXB support xsd:restriction?
- javax.xml.bind.JAXBException: Class *** nor any of its super class is known to this context
- Marshalling a List of objects implementing a common interface, with JaxB
- SQL Server – defining an XML type column with UTF-8 encoding
- Remove namespace prefix while JAXB marshalling
- Represent null value as empty element in xml jaxb
- How to validate against schema in JAXB 2.0 without marshalling?
- Old JaxB and JDK8 Metaspace OutOfMemory Issue
- Dynamic tag names with JAXB
- How to deal with JAXB ComplexType with MixedContent data?
- Use JAXB to create Object from XML String
- javax.xml.bind.UnmarshalException: unexpected element (uri:””, local:”Group”)
- Where I can find a detailed comparison of Java XML frameworks? [closed]
- JAXB, XJC -> create multiple class files
- Controlling namespace prefixes in JAXB
- How to marshall a string using JAXB that sometimes contains XML content and sometimes does not?