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

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

public class RssGuid
extends java.lang.Object

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

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

 <complexType name="rssGuid">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="isPermaLink" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
     </restriction>
   </complexContent>
 </complexType>
 
<guid> sub-element of <item>

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

guid stands for globally unique identifier. It's a string that uniquely identifies the item. When present, an aggregator may choose to use this string to determine if an item is new.

<guid>http://some.server.com/weblogItem3207</guid& gt;

There are no rules for the syntax of a guid. Aggregators must view them as a string. It's up to the source of the feed to establish the uniqueness of the string.

If the guid element has an attribute named isPermaLink with a value of true, the reader may assume that it is a permalink to the item, that is, a url that can be opened in a Web browser, that points to the full item described by the <item> element. An example:

<guid isPermaLink="true">http://inessential.com/2002/ 09/01.php#a2</guid>

isPermaLink is optional, its default value is true. If its value is false, the guid may not be assumed to be a url, or a url to anything in particular.


Field Summary
protected  java.lang.String content
           
protected  java.lang.Boolean isPermaLink
           
 
Constructor Summary
RssGuid()
           
 
Method Summary
 java.lang.String getContent()
          Gets the value of the content property.
 boolean isIsPermaLink()
          Gets the value of the isPermaLink property.
 void setContent(java.lang.String value)
          Sets the value of the content property.
 void setIsPermaLink(java.lang.Boolean value)
          Sets the value of the isPermaLink 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

isPermaLink

protected java.lang.Boolean isPermaLink
Constructor Detail

RssGuid

public RssGuid()
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

isIsPermaLink

public boolean isIsPermaLink()
Gets the value of the isPermaLink property.

Returns:
possible object is Boolean

setIsPermaLink

public void setIsPermaLink(java.lang.Boolean value)
Sets the value of the isPermaLink property.

Parameters:
value - allowed object is Boolean


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