001    /**
002     * =========================================
003     * LibXML : a free Java layouting library
004     * =========================================
005     *
006     * Project Info:  http://reporting.pentaho.org/libxml/
007     *
008     * (C) Copyright 2006-2007, by Object Refinery Ltd, Pentaho Corporation and Contributors.
009     *
010     * This library is free software; you can redistribute it and/or modify it under the terms
011     * of the GNU Lesser General Public License as published by the Free Software Foundation;
012     * either version 2.1 of the License, or (at your option) any later version.
013     *
014     * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
015     * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
016     * See the GNU Lesser General Public License for more details.
017     *
018     * You should have received a copy of the GNU Lesser General Public License along with this
019     * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
020     * Boston, MA 02111-1307, USA.
021     *
022     * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
023     * in the United States and other countries.]
024     *
025     *
026     * ------------
027     * $Id: LibXmlInfo.java 3606 2007-10-30 18:24:09Z dkincade $
028     * ------------
029     * (C) Copyright 2006-2007, by Pentaho Corporation.
030     */
031    
032    package org.jfree.xmlns;
033    
034    import java.util.Arrays;
035    
036    import org.jfree.JCommon;
037    import org.jfree.resourceloader.LibLoaderInfo;
038    import org.jfree.ui.about.Contributor;
039    import org.jfree.ui.about.ProjectInfo;
040    
041    /**
042     * The LibXmlInfo class contains all dependency information and some
043     * common information like version, license and contributors about the
044     * library itself.
045     *
046     * @author Thomas Morgner
047     */
048    public class LibXmlInfo extends ProjectInfo
049    {
050      /**
051       * The XML-Namespace is used for the 'id' attribute.
052       */
053      public static final String XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace";
054    
055      /**
056       * The XML-Namespace is used for the 'id' attribute.
057       */
058      public static final String XHTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
059    
060      private static LibXmlInfo info;
061    
062      /**
063       * Constructs an empty project info object.
064       */
065      private LibXmlInfo ()
066      {
067        setName("LibXML");
068        setVersion("0.9.11");
069        setInfo("http://reporting.pentaho.org/libxml/");
070        setCopyright ("(C)opyright 2007, by Object Refinery Limited, Pentaho Corporation and Contributors");
071    
072        setContributors(Arrays.asList(
073            new Contributor[]
074            {
075              new Contributor("Peter Becker", "-"),
076              new Contributor("Thomas Morgner", "taqua@users.sourceforge.net"),
077              new Contributor("Michael D'Amourr", "mdamour1976@users.sourceforge.net"),
078            }
079        ));
080    
081        addLibrary(JCommon.INFO);
082        addLibrary(LibLoaderInfo.getInstance());
083    
084        setBootClass(LibXmlBoot.class.getName());
085        setAutoBoot(true);
086      }
087    
088      /**
089       * Returns the singleton instance of the boot-class.
090       *
091       * @return the singleton booter.
092       */
093      public static synchronized ProjectInfo getInstance()
094      {
095        if (info == null)
096        {
097          info = new LibXmlInfo();
098        }
099        return info;
100      }
101    }