Javax.xml.bind.Unmarshaller.Listener Class



Introduction

The javax.xml.bind.Unmarshaller.Listener class registers an instance of an implementation of this class with Unmarshaller to externally listen for unmarshal events.This class enables pre and post processing of an instance of a JAXB mapped class as XML data is unmarshalled into it.

Class declaration

Following is the declaration for javax.xml.bind.Unmarshaller.Listener class:

public abstract static class Unmarshaller.Listener
   extends Object

Class constructors

S.N. Constructor & Description
1 Unmarshaller.Listener()

Single Constructor.

Class methods

S.N. Method & Description
1 void afterUnmarshal(Object target, Object parent)

This is the callback method invoked after unmarshalling XML data into target.

2 void beforeUnmarshal(Object target, Object parent)

This is the callback method invoked before unmarshalling into target.

Methods inherited

This class inherits methods from the following classes −

java.lang.Object

Advertisements