public abstract static class Unmarshaller.Listener extends Object
Unmarshaller
这个类的一个实现外部侦听数据的事件实例。
这类使预的JAXB映射类的一个实例后处理XML数据是它们分散到它。事件回调时反被称为XML内容到jaxbelement实例或JAXB映射类代表一个复杂类型定义。事件回调不叫当解包java数据类型的表示简单类型定义的实例。
外部侦听器是用于定义数据的事件回调函数的两种不同的机制之一。看到
Unmarshal Event Callbacks概述。
(@链接# setlistener(听众)}(@链接# 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.