com.svincent.moksa
Class MoksaUtil

java.lang.Object
  |
  +--com.svincent.moksa.WamObject
        |
        +--com.svincent.moksa.MoksaUtil

public class MoksaUtil
extends WamObject

Contains static utility methods to do a bunch of random stuff that doesn't belong elsewhere.


Constructor Summary
MoksaUtil()
           
 
Method Summary
static java.lang.String getImplementationVersion()
          Get the implementation version of the current Moksa package.
static java.lang.String getManifestEntry(java.lang.String key)
          Read an entry out of our Manifest.
static java.lang.String getManifestEntry(java.lang.String manifestName, java.lang.String key)
          Read an entry out of some Manifest.
static java.lang.String getSpecificationVersion()
          Get the specification version of the current Moksa package.
static boolean isCompatibleWith(java.lang.String specVersion)
          Returns 'true' if the current Moksa subsystem being used is compatible with the given version.
static void main(java.lang.String[] args)
           
static void printBanner(java.io.PrintWriter out)
          Prints a copyright/version information banner for Moksa.
 
Methods inherited from class com.svincent.moksa.WamObject
tag, tag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoksaUtil

public MoksaUtil()
Method Detail

printBanner

public static void printBanner(java.io.PrintWriter out)
Prints a copyright/version information banner for Moksa.

isCompatibleWith

public static boolean isCompatibleWith(java.lang.String specVersion)
Returns 'true' if the current Moksa subsystem being used is compatible with the given version.

For example,

   if (MoksaUtil.isCompatibleWith ("2.0"))
     // --- do some 2.0 specific things
 

getSpecificationVersion

public static java.lang.String getSpecificationVersion()
Get the specification version of the current Moksa package. Returns a string containing decimal integers separated by "."'s. This string may have leading zeros.

getImplementationVersion

public static java.lang.String getImplementationVersion()
Get the implementation version of the current Moksa package.

getManifestEntry

public static java.lang.String getManifestEntry(java.lang.String key)
Read an entry out of our Manifest. Required if we're not in a JAR file.

getManifestEntry

public static java.lang.String getManifestEntry(java.lang.String manifestName,
                                                java.lang.String key)
Read an entry out of some Manifest. Required if we're not in a JAR file.

main

public static void main(java.lang.String[] args)



This is documentation for Moksa Prolog, which can be found at http://www.svincent.com/moksa/

Copyright © 1999 Shawn P. Vincent.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.