background image

ObjectFactory Class

<< Schema-Derived JAXB Classes | PurchaseOrderType Class >>
<< Schema-Derived JAXB Classes | PurchaseOrderType Class >>

ObjectFactory Class

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);
ObjectFactory
Class
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().
PurchaseOrder
Class
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
.
JAXB Examples
Chapter 17 · Binding between XML Schema and Java Classes
509