×

Loading...
Ad by
  • 技多不压身,工到自然成:安省技工证书特训班,点击咨询报名!
Ad by
  • 技多不压身,工到自然成:安省技工证书特训班,点击咨询报名!

JAXB高手请进!紧急求助

公司在开发一个JAXB的系统,我想在unmarshal时把原来bind的 class unmarshal成自己 extend 的subclass, 用了第三方class:moon(在google搜索'moon context hawaii')::
MoonContext context = MoonContextFactory.getEformaMoonContext();
try {
context.register(Xform.class, XformVO.class);
context.register(Xfield.class, XformVO.class);
} catch (ClassNotFoundException e) {
e.printStackTrace ();
}
return (XformVO) context.createUnmarshaller ().unmarshal (bis);
现在return的类XformVO的元素Xfield unmarshal 出来还是不对(还是XfieldTypeImpl)。

有谁知道sun.xml.bind.unmarshaller.unmarshallImple的文档?
在goole上搜索不到。。。。
Report