|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.xml.bind Class Marshaller.Listener
java.lang.Object javax.xml.bind.Marshaller.Listener
- 封闭接口(上级):
- Marshaller
public abstract static class Marshaller.Listener
- extends Object
Register an instance of an implementation of this class with a Marshaller
to externally listen
for marshal events.
This class enables pre and post processing of each marshalled object. The event callbacks are called when marshalling from an instance that maps to an xml element or complex type definition. The event callbacks are not called when marshalling from an instance of a Java datatype that represents a simple type definition.
External listener is one of two different mechanisms for defining marshal event callbacks. See Marshal Event Callbacks for an overview.
- 从以下版本开始:
- JAXB2.0
- 另请参见:
Marshaller.setListener(Listener)
,Marshaller.getListener()
构造器摘要 | |
---|---|
Marshaller.Listener()
|
方法摘要 | |
---|---|
void |
afterMarshal(Object source)
Callback method invoked after marshalling source to XML. |
void |
beforeMarshal(Object source)
Callback method invoked before marshalling from source to XML. |
类方法继承 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造器详细信息 |
---|
Marshaller.Listener
public Marshaller.Listener()
方法详细信息 |
---|
beforeMarshal
public void beforeMarshal(Object source)
Callback method invoked before marshalling from source to XML.
This method is invoked just before marshalling process starts to marshal source. Note that if the class of source defines its own beforeMarshal method, the class specific callback method is invoked just before this method is invoked.
- 参数:
source
- instance of JAXB mapped class prior to marshalling from it.
afterMarshal
public void afterMarshal(Object source)
Callback method invoked after marshalling source to XML.
This method is invoked after source and all its descendants have been marshalled. Note that if the class of source defines its own afterMarshal method, the class specific callback method is invoked just before this method is invoked.
- 参数:
source
- instance of JAXB mapped class after marshalling it.
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.