Lizzy v1.1.1

christophedelory.rss.media
Class Copyright

java.lang.Object
  extended by christophedelory.rss.media.Copyright

public class Copyright
extends Object

Copyright information for media object.
Example:

 <media:copyright url="http://blah.com/additional-info.html">2005 FooBar Media</media:copyright>
 

Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
Copyright()
           
 
Method Summary
 URI getURL()
          Returns the URL for a terms of use page or additional copyright information.
 String getURLString()
          Returns the URL for a terms of use page or additional copyright information, as a string.
 String getValue()
           
 void setURL(URI url)
          Initializes the URL for a terms of use page or additional copyright information.
 void setURLString(String url)
          Initializes the URL for a terms of use page or additional copyright information, as a string.
 void setValue(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Copyright

public Copyright()
Method Detail

setURLString

public void setURLString(String url)
                  throws URISyntaxException
Initializes the URL for a terms of use page or additional copyright information, as a string.

Parameters:
url - an URL as a string. Shall not be null.
Throws:
NullPointerException - if url is null.
URISyntaxException - if the given string violates RFC 2396, as augmented by the URI deviations.
See Also:
getURLString(), setURL(java.net.URI)

getURLString

public String getURLString()
Returns the URL for a terms of use page or additional copyright information, as a string. If the media is operating under a Creative Commons license, the Creative Commons module should be used instead.

Returns:
an URL as a string. May be null.
See Also:
setURLString(java.lang.String), getURL()

setURL

public void setURL(URI url)
Initializes the URL for a terms of use page or additional copyright information.

Parameters:
url - an URL. May be null.
See Also:
getURL(), setURLString(java.lang.String)

getURL

public URI getURL()
Returns the URL for a terms of use page or additional copyright information.

Returns:
an URL. May be null.
See Also:
setURL(java.net.URI), getURLString()

getValue

public String getValue()
Returns:
the copyright information. May be null if not yet initialized.
See Also:
setValue(java.lang.String)

setValue

public void setValue(String value)
Parameters:
value - the copyright information. Shall not be null.
Throws:
NullPointerException - if value is null.
See Also:
getValue()

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.