|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| KernelContext.java | - | 33,3% | 25% | 28,6% |
|
||||||||||||||
| 1 | /* $Id: KernelContext.java,v 1.6 2006/10/20 20:23:06 m31 Exp $ | |
| 2 | * | |
| 3 | * This file is part of the project "Hilbert II" - http://www.qedeq.org | |
| 4 | * | |
| 5 | * Copyright 2000-2006, Michael Meyling <mime@qedeq.org>. | |
| 6 | * | |
| 7 | * "Hilbert II" is free software; you can redistribute | |
| 8 | * it and/or modify it under the terms of the GNU General Public | |
| 9 | * License as published by the Free Software Foundation; either | |
| 10 | * version 2 of the License, or (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | */ | |
| 17 | ||
| 18 | package org.qedeq.kernel.context; | |
| 19 | ||
| 20 | ||
| 21 | /** | |
| 22 | * This class provides static access methods for basic informations. | |
| 23 | * | |
| 24 | * @version $Revision: 1.6 $ | |
| 25 | * @author Michael Meyling | |
| 26 | */ | |
| 27 | public final class KernelContext { | |
| 28 | ||
| 29 | /** Version of this kernel. */ | |
| 30 | private static final String KERNEL_VERSION = "0.03.01"; | |
| 31 | ||
| 32 | /** Version dependent directory of this kernel. */ | |
| 33 | private static final String KERNEL_VERSION_DIRECTORY = KERNEL_VERSION.replace('.', '_'); | |
| 34 | ||
| 35 | /** Descriptive version information of this kernel. */ | |
| 36 | private static final String DESCRIPTIVE_KERNEL_VERSION | |
| 37 | = "Hilbert II - Version " + KERNEL_VERSION + " (mongaga)"; | |
| 38 | ||
| 39 | /** | |
| 40 | * Constructor. | |
| 41 | */ | |
| 42 | 0 | private KernelContext() { |
| 43 | // nothing to do | |
| 44 | } | |
| 45 | ||
| 46 | /** | |
| 47 | * Get version of this kernel. | |
| 48 | * | |
| 49 | * @return Kernel version. | |
| 50 | */ | |
| 51 | 0 | public static final String getKernelVersion() { |
| 52 | 0 | return KERNEL_VERSION; |
| 53 | } | |
| 54 | ||
| 55 | /** | |
| 56 | * Get relative version directory of this kernel. | |
| 57 | * | |
| 58 | * @return Version subdirectory. | |
| 59 | */ | |
| 60 | 378 | public static final String getKernelVersionDirectory() { |
| 61 | 378 | return KERNEL_VERSION_DIRECTORY; |
| 62 | } | |
| 63 | ||
| 64 | /** | |
| 65 | * Get descriptive version information of this kernel. | |
| 66 | * | |
| 67 | * @return Version Information. | |
| 68 | */ | |
| 69 | 0 | public static final String getDescriptiveKernelVersion() { |
| 70 | 0 | return DESCRIPTIVE_KERNEL_VERSION; |
| 71 | } | |
| 72 | ||
| 73 | } |
|
||||||||||