|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.rss.Source
public class Source
The RSS channel that the item came from. 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.
Constructor Summary | |
---|---|
Source()
|
Method Summary | |
---|---|
String |
getChannelName()
Returns the name of the RSS channel that the item came from, derived from its title. |
URI |
getURL()
Returns a link to the XMLization of the source. |
String |
getURLString()
Returns a link to the XMLization of the source. |
void |
setChannelName(String channelName)
Initializes the name of the RSS channel that the item came from, derived from its title. |
void |
setURL(URI url)
Initializes a link to the XMLization of the source. |
void |
setURLString(String url)
Initializes a link to the XMLization of the source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Source()
Method Detail |
---|
public void setChannelName(String channelName)
channelName
- the channel's name. Shall not be null
.
NullPointerException
- if channelName
is null
.getChannelName()
public String getChannelName()
null
if not yet initialized.setChannelName(java.lang.String)
public void setURLString(String url) throws URISyntaxException
url
- an URL as a string. Shall not be null
.
NullPointerException
- if url
is null
.
URISyntaxException
- if the given string violates RFC 2396, as augmented by the URI
deviations.getURLString()
,
setURL(java.net.URI)
public String getURLString()
null
.
NullPointerException
- if no URL has been defined in this source element.setURLString(java.lang.String)
,
getURL()
public void setURL(URI url)
url
- an URL. Shall not be null
.
NullPointerException
- if url
is null
.getURL()
,
setURLString(java.lang.String)
public URI getURL()
null
if not yet initialized.setURL(java.net.URI)
,
getURLString()
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |