Class BasicProjectInfo
java.lang.Object
org.jfree.base.Library
org.jfree.base.BasicProjectInfo
- Direct Known Subclasses:
BootableProjectInfo
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.BasicProjectInfo(String name, String version, String licence, String info) Creates a new library reference.Creates a new project info instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLibrary(Library library) Adds a library.voidaddOptionalLibrary(String libraryClass) Adds an optional library.voidaddOptionalLibrary(Library library) Adds an optional library.Returns the copyright statement.Library[]Returns a list of libraries used by the project.Library[]Returns a list of optional libraries used by the project.voidsetCopyright(String copyright) Sets the project copyright statement.voidSets the project info string (for example, this could be the project URL).voidsetLicenceName(String licence) Sets the license name.voidSets the project name.voidsetVersion(String version) Sets the project version number.Methods inherited from class Library
equals, getInfo, getLicenceName, getName, getVersion, hashCode
-
Constructor Details
-
BasicProjectInfo
public BasicProjectInfo()Default constructor. -
BasicProjectInfo
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 Details
-
getCopyright
-
setCopyright
Sets the project copyright statement.- Parameters:
copyright- the project copyright statement.
-
setInfo
-
setLicenceName
Sets the license name.- Overrides:
setLicenceNamein classLibrary- Parameters:
licence- the license name.
-
setName
-
setVersion
Sets the project version number.- Overrides:
setVersionin classLibrary- Parameters:
version- the version number.
-
getLibraries
Returns a list of libraries used by the project.- Returns:
- the list of libraries.
-
addLibrary
-
getOptionalLibraries
Returns a list of optional libraries used by the project.- Returns:
- the list of libraries.
-
addOptionalLibrary
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:
libraryClass- the library.
-
addOptionalLibrary
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.
-