package substitution_groups;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the substitution_groups package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
private final static QName _Customer_QNAME = new QName("", "customer");
private final static QName _ContactInfo_QNAME = new QName("", "contact-info");
private final static QName _Address_QNAME = new QName("", "address");
private final static QName _PhoneNumber_QNAME = new QName("", "phone-number");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: substitution_groups
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link Customer }
*
*/
public Customer createCustomer() {
return new Customer();
}
/**
* Create an instance of {@link Address }
*
*/
public Address createAddress() {
return new Address();
}
/**
* Create an instance of {@link PhoneNumber }
*
*/
public PhoneNumber createPhoneNumber() {
return new PhoneNumber();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Customer }{@code >}}
*
*/
@XmlElementDecl(namespace = "", name = "customer")
public JAXBElement<Customer> createCustomer(Customer value) {
return new JAXBElement<Customer>(_Customer_QNAME, Customer.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link ContactInfo }{@code >}}
*
*/
@XmlElementDecl(namespace = "", name = "contact-info")
public JAXBElement<ContactInfo> createContactInfo(ContactInfo value) {
return new JAXBElement<ContactInfo>(_ContactInfo_QNAME, ContactInfo.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link Address }{@code >}}
*
*/
@XmlElementDecl(namespace = "", name = "address", substitutionHeadNamespace = "", substitutionHeadName = "contact-info")
public JAXBElement<Address> createAddress(Address value) {
return new JAXBElement<Address>(_Address_QNAME, Address.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link PhoneNumber }{@code >}}
*
*/
@XmlElementDecl(namespace = "", name = "phone-number", substitutionHeadNamespace = "", substitutionHeadName = "contact-info")
public JAXBElement<PhoneNumber> createPhoneNumber(PhoneNumber value) {
return new JAXBElement<PhoneNumber>(_PhoneNumber_QNAME, PhoneNumber.class, null, value);
}
}