001/*
002 * Copyright 2011-2016 UnboundID Corp.
003 *
004 * This program is free software; you can redistribute it and/or modify
005 * it under the terms of the GNU General Public License (GPLv2 only)
006 * or the terms of the GNU Lesser General Public License (LGPLv2.1 only)
007 * as published by the Free Software Foundation.
008 *
009 * This program is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
012 * GNU General Public License for more details.
013 *
014 * You should have received a copy of the GNU General Public License
015 * along with this program; if not, see <http://www.gnu.org/licenses>.
016 */
017
018package com.unboundid.scim.sdk;
019
020
021
022import java.util.ArrayList;
023import java.util.Collections;
024import java.util.List;
025
026//import com.unboundid.util.ThreadSafety;
027//import com.unboundid.util.ThreadSafetyLevel;
028
029
030
031/**
032 * This class provides information about the current version of the UnboundID
033 * SCIM SDK for Java.
034 */
035//@ThreadSafety(level=ThreadSafetyLevel.COMPLETELY_THREADSAFE)
036public final class Version
037{
038  //
039  // NOTE -- This file is dynamically generated.  Do not edit it.  If you need
040  //         to add something to it, then add it to the
041  //         resource/Version.java.stub file below the SCIM SDK build root.
042  //
043
044
045
046  /**
047   * The official full product name for the SCIM SDK.  For this build, the
048   * value is "UnboundID SCIM SDK".
049   */
050  public static final String PRODUCT_NAME = "UnboundID SCIM SDK";
051
052
053
054  /**
055   * The short product name for the SCIM SDK.  This will not have any spaces.
056   * For this build, the value is "unboundid-scimsdk".
057   */
058  public static final String SHORT_NAME = "unboundid-scimsdk";
059
060
061
062  /**
063   * The version string for the SCIM SDK.
064   * For this build, the value is "1.8.14".
065   */
066  public static final String VERSION = "1.8.14";
067
068
069
070  /**
071   * A timestamp that indicates when this build of the SCIM SDK was generated.
072   * For this build, the value is "20160926112529Z".
073   */
074  public static final String BUILD_TIMESTAMP = "20160926112529Z";
075
076
077
078  /**
079   * The source revision string from which this build of the SCIM SDK was
080   * generated.  It may be {@code null} if the source control revision isn't
081   * available at build time.  For this build, the value is 58e4a.
082   */
083  public static final String REVISION_ID = "58e4a";
084
085
086
087  /**
088   * The full version string for the SCIM SDK.  For this build, the value is
089   * "UnboundID SCIM SDK 1.8.14".
090   */
091  public static final String FULL_VERSION_STRING =
092       PRODUCT_NAME + ' ' + VERSION;
093
094
095
096  /**
097   * The short version string for the SCIM SDK.  This will not have any spaces.
098   * For this build, the value is
099   * "unboundid-scimsdk-1.8.14".
100   */
101  public static final String SHORT_VERSION_STRING =
102       SHORT_NAME + '-' + VERSION;
103
104
105
106  /**
107   * Prevent this class from being instantiated.
108   */
109  private Version()
110  {
111    // No implementation is required.
112  }
113
114
115
116  /**
117   * Prints version information from this class to standard output.
118   *
119   * @param  args  The command-line arguments provided to this program.
120   */
121  public static void main(final String... args)
122  {
123    for (final String line : getVersionLines())
124    {
125      System.out.println(line);
126    }
127  }
128
129
130
131  /**
132   * Retrieves a list of lines containing information about the SCIM SDK
133   * version.
134   *
135   * @return  A list of lines containing information about the SCIM SDK
136   *          version.
137   */
138  public static List<String> getVersionLines()
139  {
140    final ArrayList<String> versionLines = new ArrayList<String>(11);
141
142    versionLines.add("Full Version String:   " + FULL_VERSION_STRING);
143    versionLines.add("Short Version String:  " + SHORT_VERSION_STRING);
144    versionLines.add("Product Name:          " + PRODUCT_NAME);
145    versionLines.add("Short Name:            " + SHORT_NAME);
146    versionLines.add("Version:               " + VERSION);
147    versionLines.add("Build Timestamp:       " + BUILD_TIMESTAMP);
148    versionLines.add("Revision ID:           " + REVISION_ID);
149
150    return Collections.unmodifiableList(versionLines);
151  }
152}