001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
003: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004: // Any modifications to this file will be lost upon recompilation of the source schema.
005: // Generated on: 2006.10.04 at 03:08:16 PM PDT
006: //
007:
008: package org.apache.openjpa.persistence.xmlmapping.xmlbindings.myaddress;
009:
010: import javax.xml.bind.JAXBElement;
011: import javax.xml.bind.annotation.XmlElementDecl;
012: import javax.xml.bind.annotation.XmlRegistry;
013: import javax.xml.namespace.QName;
014:
015: /**
016: * This object contains factory methods for each
017: * Java content interface and Java element interface
018: * generated in the myaddress package.
019: * <p>An ObjectFactory allows you to programatically
020: * construct new instances of the Java representation
021: * for XML content. The Java representation of XML
022: * content can consist of schema derived interfaces
023: * and classes representing the binding of schema
024: * type definitions, element declarations and model
025: * groups. Factory methods for each of these are
026: * provided in this class.
027: *
028: */
029: @XmlRegistry
030: public class ObjectFactory {
031:
032: private final static QName _AddrUSA_QNAME = new QName("", "AddrUSA");
033: private final static QName _AddrCAN_QNAME = new QName("", "AddrCAN");
034: private final static QName _MailAddress_QNAME = new QName("",
035: "MailAddress");
036: private final static QName _AddrGBR_QNAME = new QName("", "AddrGBR");
037:
038: /**
039: * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: myaddress
040: *
041: */
042: public ObjectFactory() {
043: }
044:
045: /**
046: * Create an instance of {@link Address }
047: *
048: */
049: public Address createAddress() {
050: return new Address();
051: }
052:
053: /**
054: * Create an instance of {@link ShortAddress }
055: *
056: */
057: public ShortAddress createShortAddress() {
058: return new ShortAddress();
059: }
060:
061: /**
062: * Create an instance of {@link USAAddress }
063: *
064: */
065: public USAAddress createUSAAddress() {
066: return new USAAddress();
067: }
068:
069: /**
070: * Create an instance of {@link GBRAddress }
071: *
072: */
073: public GBRAddress createGBRAddress() {
074: return new GBRAddress();
075: }
076:
077: /**
078: * Create an instance of {@link CANAddress }
079: *
080: */
081: public CANAddress createCANAddress() {
082: return new CANAddress();
083: }
084:
085: /**
086: * Create an instance of {@link JAXBElement }{@code <}{@link USAAddress }{@code >}}
087: *
088: */
089: @XmlElementDecl(namespace="",name="AddrUSA",substitutionHeadNamespace="",substitutionHeadName="MailAddress")
090: public JAXBElement<USAAddress> createAddrUSA(USAAddress value) {
091: return new JAXBElement<USAAddress>(_AddrUSA_QNAME,
092: USAAddress.class, null, value);
093: }
094:
095: /**
096: * Create an instance of {@link JAXBElement }{@code <}{@link CANAddress }{@code >}}
097: *
098: */
099: @XmlElementDecl(namespace="",name="AddrCAN",substitutionHeadNamespace="",substitutionHeadName="MailAddress")
100: public JAXBElement<CANAddress> createAddrCAN(CANAddress value) {
101: return new JAXBElement<CANAddress>(_AddrCAN_QNAME,
102: CANAddress.class, null, value);
103: }
104:
105: /**
106: * Create an instance of {@link JAXBElement }{@code <}{@link Address }{@code >}}
107: *
108: */
109: @XmlElementDecl(namespace="",name="MailAddress")
110: public JAXBElement<Address> createMailAddress(Address value) {
111: return new JAXBElement<Address>(_MailAddress_QNAME,
112: Address.class, null, value);
113: }
114:
115: /**
116: * Create an instance of {@link JAXBElement }{@code <}{@link GBRAddress }{@code >}}
117: *
118: */
119: @XmlElementDecl(namespace="",name="AddrGBR",substitutionHeadNamespace="",substitutionHeadName="MailAddress")
120: public JAXBElement<GBRAddress> createAddrGBR(GBRAddress value) {
121: return new JAXBElement<GBRAddress>(_AddrGBR_QNAME,
122: GBRAddress.class, null, value);
123: }
124:
125: }
|