高级自定义 > 服务和基础结构自定义 > Evolvable 类 > Evolvable 类生成的外部化代码示例 > writeExternal 方法示例
  
writeExternal 方法示例
public void writeExternal( ObjectOutput output )
throws IOException {
//##begin writeExternal%writeExternal.body preserve=no
output.writeLong( EXTERNALIZATION_VERSION_UID );
super.writeExternal( output );
output.writeObject( a1 );
output.writeObject( a2 );
output.writeObject( a3 );
output.writeObject( list );
output.writeObject( (size == null ? null :
size.getStringValue()) );
output.writeObject( theOneMoreReference );
output.writeObject( timeline );
output.writeObject( work );
//##end writeExternal%writeExternal.body
}