org.apache.wink.common.model.rss.RssItem Maven / Gradle / Ivy
/*******************************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*******************************************************************************/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-456
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2009.07.20 at 10:55:05 AM IST
//
package org.apache.wink.common.model.rss;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import org.apache.wink.common.model.synd.SyndCategory;
import org.apache.wink.common.model.synd.SyndEntry;
import org.apache.wink.common.model.synd.SyndLink;
import org.apache.wink.common.model.synd.SyndPerson;
import org.apache.wink.common.model.synd.SyndText;
import org.apache.wink.common.model.synd.SyndTextType;
/**
*
* Java class for "item" element of RSS 2.0 Specification.
*
* The following schema fragment specifies the expected content contained within
* this class.
*
*
* <complexType name="rssItem">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="title" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="link" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
* <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="author" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="category" type="{}rssCategory" maxOccurs="unbounded" minOccurs="0"/>
* <element name="comments" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
* <element name="enclosure" type="{}rssEnclosure" minOccurs="0"/>
* <element name="guid" type="{}rssGuid" minOccurs="0"/>
* <element name="pubDate" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="source" type="{}rssSource" minOccurs="0"/>
* <any/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
* Elements of <item>
*
* A channel may contain any number of <item>s. An item may represent a
* "story" -- much like a story in a newspaper or magazine; if so its
* description is a synopsis of the story, and the link points to the full
* story. An item may also be complete in itself, if so, the description
* contains the text (entity-encoded HTML is allowed; see examples), and the
* link and title may be omitted. All elements of an item are optional, however
* at least one of title or description must be present.
*
*
*
*
* Element
* Description
* Example
*
*
* title
* The title of the item.
* Venice Film Festival Tries to Quit Sinking
*
*
* link
* The URL of the item.
* http://nytimes.com/2004/12/07FEST.html
*
*
* description
* The item synopsis.
* <description>Some of the most heated chatter at the Venice Film
* Festival this week was about the way that the arrival of the stars at the
* Palazzo del Cinema was being staged.</description>
*
*
* author
* Email address of the author of the item. For newspapers and magazines
* syndicating via RSS, the author is the person who wrote the article that the
* <item> describes. For collaborative weblogs, the author of the item
* might be different from the managing editor or webmaster. For a weblog
* authored by a single individual it would make sense to omit the
* <author> element.
* <author>[email protected] (Lawyer Boyer)</author>
*
*
* category
* Includes the item in one or more categories. More
* {@linkplain RssCategory here}.
*
*
*
* comments
* URL of a page for comments relating to the item. More here..
* <comments>http://ekzemplo.com/entry/4403/comments</comments>
*
*
* enclosure
* Describes a media object that is attached to the item. More
* {@linkplain RssEnclosure here}.
*
*
*
* guid
* A string that uniquely identifies the item. More {@linkplain RssGuid
* here}.
*
*
*
* pubDate
* Indicates when the item was published. If it's a date in the future,
* aggregators may choose to not display the item until that date.
* <pubDate>Sun, 19 May 2002 15:21:36 GMT</pubDate>
*
*
* source
* The RSS channel that the item came from. More {@linkplain RssSource here}
* .
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "rssItem", propOrder = {})
public class RssItem {
protected String title;
@XmlSchemaType(name = "anyURI")
protected String link;
protected String description;
protected String author;
protected List category;
@XmlSchemaType(name = "anyURI")
protected String comments;
protected RssEnclosure enclosure;
protected RssGuid guid;
@XmlElement(required = true)
protected String pubDate;
protected RssSource source;
@XmlAnyElement(lax = true)
protected List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy