3.12.2. Mapping Example Java Output

public class OrderType {
  Address getShipTo () {...}
  void setShipTo (Address) {...}
  Address getBillTo () {...}
  void setBillTo (Address) {...}

  String getComment () {...}
  void setComment (String) {...}

  Items getItems () {...}
  void setItems (Items) {...}

  XMLGregorianCalendar getOrderDate () {...}
  void setOrderDate (XMLGregorianCalendar) {...}
};

public class Address {
  String getName () {...}
  void setName (String) {...}
  String getStreet () {...}
  void setStreet (String) {...}
  String getCity () {...}
  void setCity (String) {...}
  int getZip () {...}
  void setZip (int) {...}

  static final String COUNTRY=”Some Country”;
};

public class Items {
  public class ItemType {...}

  List<Items.ItemType> getItem () {...}
}

// Example adjusted from JAXB 2.2 Specification.