0

I am trying to use JAXB annotation @XmlElement on function which returns a object.

Function is:

@XmlElement(name= "properties")
public Object getX(XType x){
   return new ListimplementClass(x.getList());
}

Its returning only <properties/>, not the content inside.

Could you please help me in resolving this issue?

4

1 回答 1

0

看看XmlSeeAlso注释,因为这可能会有所帮助。您的 ListimplementClass 还必须具有适当的 JAXB 注释。

于 2012-08-07T14:25:19.683 回答