/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2008 - 2009, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotoolkit.atom.xml; 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 org.w3._2005.atom 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. * * @module */ @XmlRegistry public class ObjectFactory { private static final QName _Author_QNAME = new QName("http://www.w3.org/2005/Atom", "author"); private static final QName _Name_QNAME = new QName("http://www.w3.org/2005/Atom", "name"); private static final QName _Email_QNAME = new QName("http://www.w3.org/2005/Atom", "email"); private static final QName _Uri_QNAME = new QName("http://www.w3.org/2005/Atom", "uri"); /** * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.w3._2005.atom * */ public ObjectFactory() { } /** * Create an instance of {@link AtomPersonConstruct } * */ public AtomPersonConstruct createAtomPersonConstruct() { return new AtomPersonConstruct(); } /** * Create an instance of {@link Link } * */ public Link createLink() { return new Link(); } /** * Create an instance of {@link JAXBElement }{@code <}{@link AtomPersonConstruct }{@code >}} * */ @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "author") public JAXBElement<AtomPersonConstruct> createAuthor(final AtomPersonConstruct value) { return new JAXBElement<AtomPersonConstruct>(_Author_QNAME, AtomPersonConstruct.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "name") public JAXBElement<String> createName(final String value) { return new JAXBElement<String>(_Name_QNAME, String.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "email") public JAXBElement<String> createEmail(final String value) { return new JAXBElement<String>(_Email_QNAME, String.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://www.w3.org/2005/Atom", name = "uri") public JAXBElement<String> createUri(final String value) { return new JAXBElement<String>(_Uri_QNAME, String.class, null, value); } }