All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.w3._2005.atom.Feed Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.08.07 at 06:17:52 PM CEST 
//


package org.w3._2005.atom;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.ArrayList;
import java.util.List;


/**
 * 

Java class for anonymous complex type. *

*

The following schema fragment specifies the expected content contained within this class. *

*

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <choice maxOccurs="unbounded" minOccurs="0">
 *           <element ref="{http://www.w3.org/2005/Atom}author"/>
 *           <element ref="{http://www.w3.org/2005/Atom}category"/>
 *           <element ref="{http://www.w3.org/2005/Atom}contributor"/>
 *           <element ref="{http://www.w3.org/2005/Atom}generator"/>
 *           <element ref="{http://www.w3.org/2005/Atom}icon"/>
 *           <element ref="{http://www.w3.org/2005/Atom}id"/>
 *           <element ref="{http://www.w3.org/2005/Atom}link"/>
 *           <element ref="{http://www.w3.org/2005/Atom}logo"/>
 *           <element ref="{http://www.w3.org/2005/Atom}rights"/>
 *           <element ref="{http://www.w3.org/2005/Atom}subtitle"/>
 *           <element ref="{http://www.w3.org/2005/Atom}title"/>
 *           <element ref="{http://www.w3.org/2005/Atom}updated"/>
 *         </choice>
 *         <element ref="{http://www.w3.org/2005/Atom}entry" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attGroup ref="{http://www.w3.org/2005/Atom}atomCommonAttributes"/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "authorsAndCategoriesAndContributors", "page", "morePages", "entries" }) @XmlRootElement(name = "feed") public class Feed { @XmlElementRefs({ @XmlElementRef(name = "title", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false), @XmlElementRef(name = "updated", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false), @XmlElementRef(name = "icon", namespace = "http://www.w3.org/2005/Atom", type = Icon.class, required = false), @XmlElementRef(name = "author", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false), @XmlElementRef(name = "generator", namespace = "http://www.w3.org/2005/Atom", type = Generator.class, required = false), @XmlElementRef(name = "contributor", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false), @XmlElementRef(name = "link", namespace = "http://www.w3.org/2005/Atom", type = Link.class, required = false), @XmlElementRef(name = "logo", namespace = "http://www.w3.org/2005/Atom", type = Logo.class, required = false), @XmlElementRef(name = "subtitle", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false), @XmlElementRef(name = "rights", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class, required = false), @XmlElementRef(name = "category", namespace = "http://www.w3.org/2005/Atom", type = Category.class, required = false), @XmlElementRef(name = "id", namespace = "http://www.w3.org/2005/Atom", type = Id.class, required = false) }) protected List authorsAndCategoriesAndContributors; public int getPage() { return page; } public void setPage(int page) { this.page = page; } public int getTotalPageCount() { return getMorePages()+1; } public int getMorePages() { return morePages; } public void setMorePages(int morePages) { this.morePages = morePages; } // Custom // @XmlElement(name = "page", namespace = "http://www.legislation.gov.uk/namespaces/legislation") protected int page; @XmlElement(name = "morePages", namespace = "http://www.legislation.gov.uk/namespaces/legislation") protected int morePages; // // End custom @XmlElement(name = "entry") protected List entries; @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace") @XmlSchemaType(name = "anyURI") protected String base; @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "language") protected String lang; /** *

* Gets the value of the authorsAndCategoriesAndContributors property. *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the authorsAndCategoriesAndContributors property. *

* For example, to add a new item, do as follows: *

     *    getAuthorsAndCategoriesAndContributors().add(newItem);
     * 
* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link AtomTextConstruct }{@code >} * {@link JAXBElement }{@code <}{@link AtomPersonConstruct }{@code >} * {@link Icon } * {@link JAXBElement }{@code <}{@link AtomDateConstruct }{@code >} * {@link Generator } * {@link JAXBElement }{@code <}{@link AtomPersonConstruct }{@code >} * {@link Link } * {@link Logo } * {@link JAXBElement }{@code <}{@link AtomTextConstruct }{@code >} * {@link JAXBElement }{@code <}{@link AtomTextConstruct }{@code >} * {@link Category } * {@link Id } */ public List getAuthorsAndCategoriesAndContributors() { if (authorsAndCategoriesAndContributors == null) { authorsAndCategoriesAndContributors = new ArrayList<>(); } return this.authorsAndCategoriesAndContributors; } /** * Gets the value of the entries property. *

*

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the entries property. *

*

* For example, to add a new item, do as follows: *

     *    getEntries().add(newItem);
     * 
*

*

*

* Objects of the following type(s) are allowed in the list * {@link Entry } */ public List getEntries() { if (entries == null) { entries = new ArrayList<>(); } return this.entries; } /** * Gets the value of the base property. * * @return possible object is * {@link String } */ public String getBase() { return base; } /** * Sets the value of the base property. * * @param value allowed object is * {@link String } */ public void setBase(String value) { this.base = value; } /** * Gets the value of the lang property. * * @return possible object is * {@link String } */ public String getLang() { return lang; } /** * Sets the value of the lang property. * * @param value allowed object is * {@link String } */ public void setLang(String value) { this.lang = value; } }