Tubular.java :  » XML » tubular » org » trancecode » xproc » Java Open Source

Java Open Source » XML » tubular 
tubular » org » trancecode » xproc » Tubular.java
/*
 * Copyright (C) 2010 Herve Quiroz
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 * 
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library; if not, write to the Free Software Foundation, Inc.,
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
 */
package org.trancecode.xproc;

import org.trancecode.xml.Namespace;

/**
 * @author Herve Quiroz
 */
public final class Tubular
{
    private static final int VERSION_MAJOR = 0;
    private static final int VERSION_MINOR = 1;
    private static final int REVISION = 0;
    private static final boolean SNAPSHOT = true;
    private static final String VERSION = VERSION_MAJOR + "." + VERSION_MINOR + "." + REVISION
            + (SNAPSHOT ? "-SNAPSHOT" : "");

    private static final Namespace NAMESPACE = new Namespace("http://www.trancecode.org/tubular/1/", "tubular");

    private Tubular()
    {
        // No instantiation
    }

    public static String version()
    {
        return VERSION;
    }

    public static String xprocVersion()
    {
        return "1.0";
    }

    public static String xpathVersion()
    {
        return "2.0";
    }

    public static Namespace namespace()
    {
        return NAMESPACE;
    }

    public static String productName()
    {
        return "Tubular";
    }

    public static String vendor()
    {
        return "Herve Quiroz";
    }

    public static String vendorUri()
    {
        return "http://www.trancecode.org/tubular/";
    }

    public static String productInformation()
    {
        return String.format("%s version %s (c) %s\nXProc version: %s\nXPath version: %s", productName(), version(),
                vendor(), xprocVersion(), xpathVersion());
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.