这个类不知道如何创建对象:请教

紫气东来_999 2010-03-10 10:32:53
这个类不知道如何创建对象:

package cn.com.weaver.ws.workflow.request;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"property"
})
@XmlRootElement(name = "MainTableInfo")
public class MainTableInfo {

@XmlElement(name = "Property", required = true)
protected List<Property> property;


public List<Property> getProperty() {
if (property == null) {
property = new ArrayList<Property>();
}
return this.property;
}

}

...全文
79 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
紫气东来_999 2010-03-11
  • 打赏
  • 举报
回复
汗,原来是缺少引用

少import 东西了。

不过还是谢谢楼上各位。
VilenZYP 2010-03-10
  • 打赏
  • 举报
回复
额,难道你没有把你的那个什么Property引进来,eclipse不报错??

纳闷!
紫气东来_999 2010-03-10
  • 打赏
  • 举报
回复
汗,原来没引用文件。
吟风 2010-03-10
  • 打赏
  • 举报
回复
。。。。。。
Property 类型
property 实例
在那里?
紫气东来_999 2010-03-10
  • 打赏
  • 举报
回复

MainTableInfo mtb = new MainTableInfo();



提示:can not be resolved as a type
qq369759459 2010-03-10
  • 打赏
  • 举报
回复
啥玩意啊????我怎么感觉来到了外星

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧