Samples JDK
OrderList.java
1 package com.freemindcafe.apache.cxf.jaxrs.sample9;
2 
3 import java.util.ArrayList;
4 import java.util.List;
5 
6 import javax.xml.bind.annotation.XmlElement;
7 import javax.xml.bind.annotation.XmlRootElement;
8 
9 @XmlRootElement(name = "OrderList")
10 public class OrderList {
11 
12  @XmlElement(name = "order", required = true)
13  List<Order> orders;
14 
15  public List<Order> getOrder() {
16  if (orders == null) {
17  orders = new ArrayList<Order>();
18  }
19  return this.orders;
20  }
21 }