Package org.jfree.base
Class Library
- java.lang.Object
-
- org.jfree.base.Library
-
- Direct Known Subclasses:
BasicProjectInfo,Library
public class Library extends java.lang.Object
A simple class representing a library in a software project. For use in theAboutFrameclass.- Author:
- David Gilbert
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetInfo()Returns the project info for the library.java.lang.StringgetLicenceName()Returns the licenceName text.java.lang.StringgetName()Returns the library name.java.lang.StringgetVersion()Returns the library version.inthashCode()protected voidsetInfo(java.lang.String info)Sets the project info.protected voidsetLicenceName(java.lang.String licenceName)Sets the licence name.protected voidsetName(java.lang.String name)Sets the project name.protected voidsetVersion(java.lang.String version)Sets the version identifier.
-
-
-
Constructor Detail
-
Library
public Library(java.lang.String name, java.lang.String version, java.lang.String licence, java.lang.String info)
Creates a new library reference.- Parameters:
name- the name.version- the version.licence- the licenceName.info- the web address or other info.
-
Library
protected Library()
Creates a new library reference.
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the library name.- Returns:
- the library name.
-
getVersion
public java.lang.String getVersion()
Returns the library version.- Returns:
- the library version.
-
getLicenceName
public java.lang.String getLicenceName()
Returns the licenceName text.- Returns:
- the licenceName text.
-
getInfo
public java.lang.String getInfo()
Returns the project info for the library.- Returns:
- the project info.
-
setInfo
protected void setInfo(java.lang.String info)
Sets the project info.- Parameters:
info- the project info.
-
setLicenceName
protected void setLicenceName(java.lang.String licenceName)
Sets the licence name.- Parameters:
licenceName- the licence name.
-
setName
protected void setName(java.lang.String name)
Sets the project name.- Parameters:
name- the project name.
-
setVersion
protected void setVersion(java.lang.String version)
Sets the version identifier.- Parameters:
version- the version identifier.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-