|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.license.License
public class License
Class describing the licensing terms with title, short, and full-text descriptions.
| Field Summary | |
|---|---|
static License |
CC0
STATIC GLOBAL VARIABLES |
| Constructor Summary | |
|---|---|
License(java.io.InputStream in)
|
|
License(java.lang.String title,
java.lang.String shortDescription,
java.lang.String description,
boolean descriptionIsFile)
Create a license with a title, short description, its encryption status, the URL of the license, and the full-text of the license. |
|
| Method Summary | |
|---|---|
void |
deserialize(java.io.InputStream in)
|
java.lang.String |
getDescription()
The legal text or other text to describe the license. |
java.lang.String |
getShortDescription()
Retrieve short description of the license. |
java.lang.String |
getTitle()
Retrieve title of license. |
void |
serialize(java.io.OutputStream out)
|
void |
setDescription(java.lang.String description)
Set the license text. |
void |
setShortDescription(java.lang.String shortDescription)
Set short description of the license. |
void |
setTitle(java.lang.String title)
Set title of the license. |
java.lang.String |
toString()
Return the title and encryption status appended. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static License CC0
| Constructor Detail |
|---|
public License(java.lang.String title,
java.lang.String shortDescription,
java.lang.String description,
boolean descriptionIsFile)
title - shortDescription - A brief description of the licensedescription - The full-text description of the licensedescriptionIsFile - Whether the description is the local file containing the description.
public License(java.io.InputStream in)
throws java.lang.Exception
in -
java.lang.Exception| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getShortDescription()
public void setShortDescription(java.lang.String shortDescription)
shortDescription - public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - public java.lang.String getDescription()
The legal text or other text to describe the license.
Note this might be stored in memory or on disk. Returns null if not set.
public void setDescription(java.lang.String description)
description -
public void serialize(java.io.OutputStream out)
throws java.lang.Exception
out -
java.lang.Exception
public void deserialize(java.io.InputStream in)
throws java.lang.Exception
in -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||