10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

JAXB Examples<br />

508<br />

PurchaseOrderType Class<br />

In PurchaseOrderType.java:<br />

■ <strong>The</strong> PurchaseOrderType class is part of the primer.po package.<br />

■ Content in instantiations of this class binds to the XML schema child element named<br />

PurchaseOrderType.<br />

■ PurchaseOrderType is a public interface that provides the following methods:<br />

■ getItems();<br />

■ setItems(primer.po.Items value);<br />

■ getOrderDate();<br />

■ setOrderDate(java.util.Calendar value);<br />

■ getComment();<br />

■ setComment(java.lang.String value);<br />

■ getBillTo();<br />

■ setBillTo(primer.po.USAddress value);<br />

■ getShipTo();<br />

■ setShipTo(primer.po.USAddress value);<br />

USAddress Class<br />

In USAddress.java:<br />

■ <strong>The</strong> USAddress class is part of the primer.po package.<br />

■ Content in instantiations of this class binds to the XML schema element named USAddress.<br />

■ USAddress is a public interface that provides the following methods:<br />

■ getState();<br />

■ setState(String value);<br />

■ getZip();<br />

■ setZip(java.math.BigDecimal value);<br />

■ getCountry();<br />

■ setCountry(String value);<br />

■ getCity();<br />

■ setCity(String value);<br />

■ getStreet();<br />

■ setStreet(String value);<br />

■ getName();<br />

■ setName(String value);<br />

<strong>The</strong> <strong>Java</strong> <strong>EE</strong> 5<strong>Tutorial</strong> • June 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!