/**
 *
 * Copyright (c) 2006-2015, Speedment, Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); You may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.speedment;

import static com.speedment.internal.util.StaticClassUtil.instanceNotAllowed;

/**
 * This class holds the parameters normally held in the JAR MANIFEST. By holding
 * the values here, they will survive any jar modification process such as the
 * Maven Shade Plugin.
 *
 * @author pemi
 * @since 2.0
 */
public final class SpeedmentVersion {

    private static final String IMPLEMENTATION_TITLE = "Speedment";
    private static final String IMPLEMENTATION_VENDOR = "Speedment Inc."; // "Speedment, Inc." difficult to enter into POM because of ','
    private static final String IMPLEMENTATION_VERSION = "2.1.0";
    private static final boolean PRODUCTION_MODE = true;

//    private static final String SPECIFICATION_TITLE = "Speedment";
//    private static final String SPECIFICATION_VENDOR = "Speedment Inc.";
    private static final String SPECIFICATION_VERSION = "2.1";

    /**
     * Returns if this version is intended for production use.
     *
     * @return if this version is intended for production use
     */
    public static boolean isProductionMode() {
        return PRODUCTION_MODE;
    }

    /**
     * Returns the non-null title of the Speedment framework.
     *
     * @return the title
     */
    public static String getImplementationTitle() {
        return IMPLEMENTATION_TITLE;
    }

    /**
     * Returns the non-null name of the organization, vendor or company that
     * provided this Speedment implementation.
     *
     * @return the non-null name of the organization, vendor or company that
     * provided this Speedment implementation
     */
    public static String getImplementationVendor() {
        return IMPLEMENTATION_VENDOR;

    }

    /**
     * Return the non-null version of this Speedment implementation. It consists
     * of any string assigned by the vendor of this implementation and does not
     * have any particular syntax specified or expected by the Java runtime. It
     * may be compared for equality with other package version strings used for
     * this implementation by this vendor for this package.
     *
     * @return the non-null version of this Speedment implementation
     */
    public static String getImplementationVersion() {
        return IMPLEMENTATION_VERSION;
    }

//    public static String getSpecificationTitle() {
//        return SPECIFICATION_TITLE;
//    }
//
//    public static String getSpecificationVendor() {
//        return SPECIFICATION_VENDOR;
//    }
//
    /**
     * Returns the non-null version number of the specification that this
     * Speedment implements. This version string must be a sequence of
     * nonnegative decimal integers separated by "."'s and may have leading
     * zeros. When version strings are compared the most significant numbers are
     * compared.
     *
     * @return the non-null version number of the specification that this
     * Speedment implements
     */
    public static String getSpecificationVersion() {
        return SPECIFICATION_VERSION;
    }

    /**
     * Utility classes should not be instantiated.
     */
    private SpeedmentVersion() {
        instanceNotAllowed(getClass());
    }
}

@@ -1013,32 +1013,40 @@
 tic final String
+%0A       
  IMPLEMENTATION_
@@ -1043,32 +1043,34 @@
 MENTATION_TITLE 
+  
 = %22Speedment%22;%0A 
@@ -1070,41 +1070,17 @@
 ent%22
-;
+,
 %0A    
-private static final String
+   
  IMP
@@ -1090,32 +1090,33 @@
 ENTATION_VENDOR 
+ 
 = %22Speedment Inc
@@ -1117,17 +1117,18 @@
 nt Inc.%22
-;
+, 
  // %22Spe
@@ -1192,35 +1192,11 @@
     
-private static final String
+   
  IMP
@@ -1226,214 +1226,53 @@
 2.1.
-0%22;
+1%22,
 %0A    
-private static final boolean PRODUCTION_MODE = true;%0A%0A//    private static final String SPECIFICATION_TITLE = %22Speedment%22;%0A//    private static final String SPECIFICATION_VENDOR = %22Speedment Inc.
+    SPECIFICATION_VERSION  = %222.1
 %22;%0A
+%0A
     
@@ -1296,44 +1296,38 @@
 nal 
-String SPECIFICATION_VERSION = %222.1%22
+boolean PRODUCTION_MODE = true
 ;%0A%0A 
@@ -2711,214 +2711,8 @@
  %7D%0A%0A
-//    public static String getSpecificationTitle() %7B%0A//        return SPECIFICATION_TITLE;%0A//    %7D%0A//%0A//    public static String getSpecificationVendor() %7B%0A//        return SPECIFICATION_VENDOR;%0A//    %7D%0A//%0A
     

Increment version