/** * Returns a string describing the project. * * @return a string describing the project. */ public String toString() { String result = getName() + " version " + getVersion() + ".\n"; result = result + getCopyright() + ".\n"; result = result + "\n"; result = result + "For terms of use, see the licence below.\n"; result = result + "\n"; result = result + "FURTHER INFORMATION:"; result = result + getInfo(); result = result + "\n"; result = result + "CONTRIBUTORS:"; List contributors = getContributors(); if (contributors != null) { Iterator iterator = getContributors().iterator(); while (iterator.hasNext()) { Contributor contributor = (Contributor) iterator.next(); result = result + contributor.getName() + " (" + contributor.getEmail() + ")."; } } else { result = result + "None"; } result = result + "\n"; result = result + "OTHER LIBRARIES USED BY " + getName() + ":"; List libraries = getLibraries(); if (libraries != null) { Iterator iterator = getLibraries().iterator(); while (iterator.hasNext()) { Library lib = (Library) iterator.next(); result = result + lib.getName() + " " + lib.getVersion() + " (" + lib.getInfo() + ")."; } } else { result = result + "None"; } result = result + "\n"; result = result + getName() + " LICENCE TERMS:"; result = result + "\n"; result = result + getLicenceText(); return result; }