public class Copyright extends java.lang.Object implements ICopyright
Copyright class represents a software copyright. A copyright has
required body text which may be the full text or a summary. An optional location field can be specified
which links to full text.| Constructor and Description |
|---|
Copyright(java.net.URI location,
java.lang.String body)
Creates a new copyright.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBody()
Returns the license body.
|
java.net.URI |
getLocation()
Returns the location of a document containing the copyright notice.
|
public Copyright(java.net.URI location,
java.lang.String body)
location - the location of a document containing the copyright notice, or nullbody - the copyright body, cannot be nulljava.lang.IllegalArgumentException - when the body is nullpublic java.net.URI getLocation()
getLocation in interface ICopyrightnullpublic java.lang.String getBody()
getBody in interface ICopyrightnull