public abstract static class Unmarshaller.Listener extends Object
Unmarshaller从外部侦听解组事件。 
        
        
       此类可以在XML数据未编组的情况下对JAXB映射类的实例进行前处理和后处理。 
       将XML内容解组为JAXBElement实例或表示复杂类型定义的JAXB映射类时,将调用事件回调。 
       解组到表示简单类型定义的Java数据类型的实例时,不会调用事件回调。 
        
        
       外部监听器是定义unmarshal事件回调的两种不同的机制之一。 
       有关概述,请参阅Unmarshal Event Callbacks 。 
        
       (@link #setListener(Listener)}(@link #getListener()} 
      | Constructor and Description | 
|---|
| Listener() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterUnmarshal(Object target, Object parent) 
             将XML数据 
             解组后调用回调方法到 
             target 。 
             | 
| void | beforeUnmarshal(Object target, Object parent) 
             在解组之前调用回调方法到 
             target 。 
             | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.