Frames | No Frames |
1: /* ======================================================================== 2: * JCommon : a free general purpose class library for the Java(tm) platform 3: * ======================================================================== 4: * 5: * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors. 6: * 7: * Project Info: http://www.jfree.org/jcommon/index.html 8: * 9: * This library is free software; you can redistribute it and/or modify it 10: * under the terms of the GNU Lesser General Public License as published by 11: * the Free Software Foundation; either version 2.1 of the License, or 12: * (at your option) any later version. 13: * 14: * This library is distributed in the hope that it will be useful, but 15: * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 17: * License for more details. 18: * 19: * You should have received a copy of the GNU Lesser General Public 20: * License along with this library; if not, write to the Free Software 21: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 22: * USA. 23: * 24: * [Java is a trademark or registered trademark of Sun Microsystems, Inc. 25: * in the United States and other countries.] 26: * 27: * ------------ 28: * JCommonXMLInfo.java 29: * ------------ 30: * (C) Copyright 2005, by Object Refinery Limited. 31: * 32: * Original Author: David Gilbert (for Object Refinery Limited); 33: * Contributor(s): -; 34: * 35: * $Id: JCommonXMLInfo.java,v 1.5 2006/03/23 19:47:05 taqua Exp $ 36: * 37: * Changes 38: * ------- 39: * 22-Feb-2005 : Initial version. 40: * 03-Mar-2005 : Updated copyright. 41: * 42: */ 43: package org.jfree.xml; 44: 45: import java.util.Arrays; 46: 47: import org.jfree.JCommonInfo; 48: import org.jfree.ui.about.Contributor; 49: import org.jfree.ui.about.ProjectInfo; 50: 51: /** 52: * The info implementation for the XML classes of JCommon. 53: * 54: * @author Thomas Morgner 55: */ 56: public class JCommonXMLInfo extends ProjectInfo { 57: /** 58: * The info singleton. 59: */ 60: private static JCommonXMLInfo singleton; 61: 62: /** 63: * Returns the single instance of this class. 64: * 65: * @return The single instance of information about the JCommon library. 66: */ 67: public static synchronized JCommonXMLInfo getInstance() { 68: if (singleton == null) { 69: singleton = new JCommonXMLInfo(); 70: } 71: return singleton; 72: } 73: 74: 75: /** 76: * Constructs an empty project info object. 77: */ 78: private JCommonXMLInfo() { 79: final JCommonInfo info = JCommonInfo.getInstance(); 80: 81: setName("JCommon-XML"); 82: setVersion(info.getVersion()); 83: setInfo(info.getInfo()); 84: setCopyright(info.getCopyright()); 85: 86: setLicenceName(info.getLicenceName()); 87: setLicenceText(info.getLicenceText()); 88: 89: setContributors(Arrays.asList(new Contributor[]{ 90: new Contributor("David Gilbert", "david.gilbert@object-refinery.com"), 91: new Contributor("Thomas Morgner", "taqua@users.sourceforge.net"), 92: new Contributor("Peter Becker", "-"), 93: })); 94: 95: addLibrary(info); 96: } 97: }