JavaScud | Forum | JIRA | Blog |
  Dashboard > WebWork2文档中文化计划 > ... > J2SE 5 Support > Element Annotation
  WebWork2文档中文化计划 Log In View a printable version of the current page.  
  Element Annotation
Added by scud, last edited by scud on May 18, 2006  (view change)
Labels: 
(None)

Element 标注

设置类型转换的元素.

使用

Element标注必须使用在字段级别上.

参数

参数 必填 缺省值 备注
value no java.lang.Object.class element 属性值.

例子

// The key property for User objects within the users collection is the <code>userName</code> attribute.
@Element( value = com.acme.User )
private Map<Long, User> userMap;

@Element( value = com.acme.User )
public List<User> userList;
Site running on a free Atlassian Confluence Open Source Project License granted to WebWork China. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.3 Build:#808 May 29, 2007) - Bug/feature request - Contact Administrators