org.clapper.curn.parser
Class RSSLink

java.lang.Object
  extended by org.clapper.curn.parser.RSSLink

public class RSSLink
extends java.lang.Object

An RSSLink object describes a link to a URL, including any metadata about the URL's content (if available).

Version:
$Revision: 6305 $
See Also:
RSSItem, RSSChannel

Nested Class Summary
static class RSSLink.Type
          Link types.
 
Constructor Summary
RSSLink()
          Create an empty RSSLink object.
RSSLink(java.net.URL url, java.lang.String mimeType, RSSLink.Type linkType)
          Create and populate a new RSSLink object.
 
Method Summary
 RSSLink.Type getLinkType()
          Get the link type for this link.
 java.lang.String getMIMEType()
          Get the MIME type for this link.
 java.net.URL getURL()
          Get the URL for this link.
 void setLinkType(RSSLink.Type linkType)
          Set the link type for this link.
 void setMIMEType(java.lang.String mimeType)
          Set the MIME type for this link.
 void setURL(java.net.URL url)
          Set the URL for this link.
 java.lang.String toString()
          Get the string representation of this link (the URL).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RSSLink

public RSSLink()
Create an empty RSSLink object.

See Also:
RSSLink(URL,String,Type)

RSSLink

public RSSLink(java.net.URL url,
               java.lang.String mimeType,
               RSSLink.Type linkType)
Create and populate a new RSSLink object.

Parameters:
url - the link's URL
mimeType - the MIME type. Must not be null.
linkType - the link type
Method Detail

getURL

public java.net.URL getURL()
Get the URL for this link.

Returns:
the URL, or null if not set yet.
See Also:
setURL(java.net.URL)

setURL

public void setURL(java.net.URL url)
Set the URL for this link.

Parameters:
url - the URL, or null if not set yet.
See Also:
getURL()

getMIMEType

public java.lang.String getMIMEType()
Get the MIME type for this link.

Returns:
the MIME type, or null if not set yet.
See Also:
setMIMEType(java.lang.String)

setMIMEType

public void setMIMEType(java.lang.String mimeType)
Set the MIME type for this link.

Parameters:
mimeType - the MIME Type, or null if not set yet.
See Also:
getMIMEType()

getLinkType

public RSSLink.Type getLinkType()
Get the link type for this link.

Returns:
the link type, or null if not set yet.
See Also:
setLinkType(org.clapper.curn.parser.RSSLink.Type)

setLinkType

public void setLinkType(RSSLink.Type linkType)
Set the link type for this link.

Parameters:
linkType - the link Type, or null if not set yet.
See Also:
getLinkType()

toString

public java.lang.String toString()
Get the string representation of this link (the URL).

Overrides:
toString in class java.lang.Object
Returns:
the string version


Copyright © 2004-2006 Brian M. Clapper. All Rights Reserved.