|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wink.common.model.rss.RssGuid
public class RssGuid
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> 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 String |
content
|
protected Boolean |
isPermaLink
|
Constructor Summary | |
---|---|
RssGuid()
|
Method Summary | |
---|---|
String |
getContent()
Gets the value of the content property. |
boolean |
isIsPermaLink()
Gets the value of the isPermaLink property. |
void |
setContent(String value)
Sets the value of the content property. |
void |
setIsPermaLink(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 |
---|
protected String content
protected Boolean isPermaLink
Constructor Detail |
---|
public RssGuid()
Method Detail |
---|
public String getContent()
String
public void setContent(String value)
value
- allowed object is String
public boolean isIsPermaLink()
Boolean
public void setIsPermaLink(Boolean value)
value
- allowed object is Boolean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |