org.jfree.base

Class BasicProjectInfo

public class BasicProjectInfo extends Library

Basic project info.

Author: Thomas Morgner

Constructor Summary
BasicProjectInfo()
Default constructor.
BasicProjectInfo(String name, String version, String licence, String info)
Creates a new library reference.
BasicProjectInfo(String name, String version, String info, String copyright, String licenceName)
Creates a new project info instance.
Method Summary
voidaddLibrary(Library library)
Adds a library.
voidaddOptionalLibrary(String libraryClass)
Adds an optional library.
voidaddOptionalLibrary(Library library)
Adds an optional library.
StringgetCopyright()
Returns the copyright statement.
Library[]getLibraries()
Returns a list of libraries used by the project.
Library[]getOptionalLibraries()
Returns a list of optional libraries used by the project.
voidsetCopyright(String copyright)
Sets the project copyright statement.
voidsetInfo(String info)
Sets the project info string (for example, this could be the project URL).
voidsetLicenceName(String licence)
Sets the license name.
voidsetName(String name)
Sets the project name.
voidsetVersion(String version)
Sets the project version number.

Constructor Detail

BasicProjectInfo

public BasicProjectInfo()
Default constructor.

BasicProjectInfo

public BasicProjectInfo(String name, String version, String licence, String info)
Creates a new library reference.

Parameters: name the name. version the version. licence the licence. info the web address or other info.

BasicProjectInfo

public BasicProjectInfo(String name, String version, String info, String copyright, String licenceName)
Creates a new project info instance.

Parameters: name the project name. version the project version. info the project info (web site for example). copyright the copyright statement. licenceName the license name.

Method Detail

addLibrary

public void addLibrary(Library library)
Adds a library.

Parameters: library the library.

addOptionalLibrary

public void addOptionalLibrary(String libraryClass)
Adds an optional library. These libraries will be booted, if they define a boot class. A missing class is considered non-fatal and it is assumed that the programm knows how to handle that.

Parameters: library the library.

addOptionalLibrary

public void addOptionalLibrary(Library library)
Adds an optional library. These libraries will be booted, if they define a boot class. A missing class is considered non-fatal and it is assumed that the programm knows how to handle that.

Parameters: library the library.

getCopyright

public String getCopyright()
Returns the copyright statement.

Returns: The copyright statement.

getLibraries

public Library[] getLibraries()
Returns a list of libraries used by the project.

Returns: the list of libraries.

getOptionalLibraries

public Library[] getOptionalLibraries()
Returns a list of optional libraries used by the project.

Returns: the list of libraries.

setCopyright

public void setCopyright(String copyright)
Sets the project copyright statement.

Parameters: copyright the project copyright statement.

setInfo

public void setInfo(String info)
Sets the project info string (for example, this could be the project URL).

Parameters: info the info string.

setLicenceName

public void setLicenceName(String licence)
Sets the license name.

Parameters: licence the license name.

setName

public void setName(String name)
Sets the project name.

Parameters: name the project name.

setVersion

public void setVersion(String version)
Sets the project version number.

Parameters: version the version number.