Package org.jfree.base
Class Library
- java.lang.Object
-
- org.jfree.base.Library
-
- Direct Known Subclasses:
BasicProjectInfo
,Library
public class Library extends Object
A simple class representing a library in a software project. For use in theAboutFrame
class.- Author:
- David Gilbert
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Tests this object for equality with an arbitrary object.String
getInfo()
Returns the project info for the library.String
getLicenceName()
Returns the licenceName text.String
getName()
Returns the library name.String
getVersion()
Returns the library version.int
hashCode()
Returns a hash code for this instance.protected void
setInfo(String info)
Sets the project info.protected void
setLicenceName(String licenceName)
Sets the licence name.protected void
setName(String name)
Sets the project name.protected void
setVersion(String version)
Sets the version identifier.
-
-
-
Constructor Detail
-
Library
public Library(String name, String version, String licence, 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 String getName()
Returns the library name.- Returns:
- the library name.
-
getVersion
public String getVersion()
Returns the library version.- Returns:
- the library version.
-
getLicenceName
public String getLicenceName()
Returns the licenceName text.- Returns:
- the licenceName text.
-
getInfo
public String getInfo()
Returns the project info for the library.- Returns:
- the project info.
-
setInfo
protected void setInfo(String info)
Sets the project info.- Parameters:
info
- the project info.
-
setLicenceName
protected void setLicenceName(String licenceName)
Sets the licence name.- Parameters:
licenceName
- the licence name.
-
setName
protected void setName(String name)
Sets the project name.- Parameters:
name
- the project name.
-
setVersion
protected void setVersion(String version)
Sets the version identifier.- Parameters:
version
- the version identifier.
-
equals
public boolean equals(Object o)
Tests this object for equality with an arbitrary object.
-
-