The sections that follow briefly explain the functions of the following individual classes generated by the JAXB binding compiler for the Basic examples:
In Comment.java:
The Comment class is part of the primer.po package.
Comment is a public interface that extends javax.xml.bind.Element.
Content in instantiations of this class binds to the XML schema element named comment.
The getValue() and setValue() methods are used to get and set strings representing XML comment elements in the Java content tree.
In Items.java:
The Items class is part of the primer.po package.
The class provides public interfaces for Items and ItemType.
Content in instantiations of this class binds to the XML ComplexTypes Items and its child element ItemType.
Item provides the getItem() method.
ItemType provides methods for:
getPartNum();
setPartNum(String value);
getComment();
setComment(java.lang.String value);
getUSPrice();
setUSPrice(java.math.BigDecimal value);
getProductName();
setProductName(String value);
getShipDate();
setShipDate(java.util.Calendar value);
getQuantity();
setQuantity(java.math.BigInteger value);
In ObjectFactory.java:
The ObjectFactory class is part of the primer.po package.
ObjectFactory provides factory methods for instantiating Java interfaces representing XML content in the Java content tree.
Method names are generated by concatenating:
The string constant create.
If the Java content interface is nested within another interface, then the concatenation of all outer Java class names.
The name of the Java content interface.
For example, in this case, for the Java interface primer.po.Items.ItemType, ObjectFactory creates the method createItemsItemType().
In PurchaseOrder.java:
The PurchaseOrder class is part of the primer.po package.
PurchaseOrder is a public interface that extends javax.xml.bind.Element and primer.po.PurchaseOrderType.
Content in instantiations of this class binds to the XML schema element named purchaseOrder.
In PurchaseOrderType.java:
The PurchaseOrderType class is part of the primer.po package.
Content in instantiations of this class binds to the XML schema child element named PurchaseOrderType.
PurchaseOrderType is a public interface that provides the following methods:
getItems();
setItems(primer.po.Items value);
getOrderDate();
setOrderDate(java.util.Calendar value);
getComment();
setComment(java.lang.String value);
getBillTo();
setBillTo(primer.po.USAddress value);
getShipTo();
setShipTo(primer.po.USAddress value);
In USAddress.java:
The USAddress class is part of the primer.po package.
Content in instantiations of this class binds to the XML schema element named USAddress.
USAddress is a public interface that provides the following methods:
getState();
setState(String value);
getZip();
setZip(java.math.BigDecimal value);
getCountry();
setCountry(String value);
getCity();
setCity(String value);
getStreet();
setStreet(String value);
getName();
setName(String value);