org.apache.wink.common.model.rss
Class RssSource

java.lang.Object
  extended by org.apache.wink.common.model.rss.RssSource

public class RssSource
extends java.lang.Object

Java class for "source" element of RSS 2.0 Specification.

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

 <complexType name="rssSource">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="url" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
<source> sub-element of <item>

<source> is an optional sub-element of <item>.

Its value is the name of the RSS channel that the item came from, derived from its <title>. It has one required attribute, url, which links to the XMLization of the source.

<source url="http://www.tomalak.org/links2.xml">Tomalak's Realm</source>

The purpose of this element is to propagate credit for links, to publicize the sources of news items. It can be used in the Post command of an aggregator. It should be generated automatically when forwarding an item from an aggregator to a weblog authoring tool.


Field Summary
protected  java.lang.String content
           
protected  java.lang.String url
           
 
Constructor Summary
RssSource()
           
 
Method Summary
 java.lang.String getContent()
          Gets the value of the content property.
 java.lang.String getUrl()
          Gets the value of the url property.
 void setContent(java.lang.String value)
          Sets the value of the content property.
 void setUrl(java.lang.String value)
          Sets the value of the url property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

protected java.lang.String content

url

protected java.lang.String url
Constructor Detail

RssSource

public RssSource()
Method Detail

getContent

public java.lang.String getContent()
Gets the value of the content property.

Returns:
possible object is String

setContent

public void setContent(java.lang.String value)
Sets the value of the content property.

Parameters:
value - allowed object is String

getUrl

public java.lang.String getUrl()
Gets the value of the url property.

Returns:
possible object is String

setUrl

public void setUrl(java.lang.String value)
Sets the value of the url property.

Parameters:
value - allowed object is String


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.