首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > GWT的JAXB解析

GWT的JAXB解析

  • 资源大小:19.19 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: GWT jaxb 解析

资 源 简 介

Repository moved to https://github.com/pfranza/gwtjaxb A GWT library that supports basic JAXB annotations to bind xml to a bean hierarchy. Usage Creating a jaxb parser is easy: @JAXBBindings(value=RootBean.class, objects={NestedSubObjectOne.class, NestedSubObjectTwo.class})public interface RootBeanParserFactory extends JAXBParserFactory{} You create an interface that extends JAXBParserFactory<> with a generic that matches the @XMLRootEntity node. Then you add a @JAXBBindings to the interface where value is the @XmlRootEntity and objects is an array of all other beans that the parser should use. Using the jaxb parser is easy: RootBeanParserFactory p = GWT.create(RootBeanParserFactory .class);RootBean bean = p.create().parse("");

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.257900s