public class Source extends Object
| Constructor and Description |
|---|
Source() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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()Copyright © 2008–2017. All rights reserved.