public class Copyright extends Object
<media:copyright url="http://blah.com/additional-info.html">2005 FooBar Media</media:copyright>
| Constructor and Description |
|---|
Copyright() |
| Modifier and Type | Method and Description |
|---|---|
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) |
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.setURLString(java.lang.String),
getURL()public void setURL(URI url)
url - an URL. May be null.getURL(),
setURLString(java.lang.String)public URI getURL()
null.setURL(java.net.URI),
getURLString()public String getValue()
null if not yet initialized.setValue(java.lang.String)public void setValue(String value)
value - the copyright information. Shall not be null.NullPointerException - if value is null.getValue()Copyright © 2008–2017. All rights reserved.