net.didion.jwnl
Class JWNL

java.lang.Object
  extended by net.didion.jwnl.JWNL

public final class JWNL
extends java.lang.Object

Contains system info as well as JWNL properties.


Nested Class Summary
static class JWNL.OS
          Used to create constants that represent the major categories of operating systems.
static class JWNL.Version
          Represents a version of WordNet.
 
Field Summary
static JWNL.OS[] DEFINED_OS_ARRAY
           
static JWNL.OS MAC
           
static java.lang.String OS_PROPERTY_NAME
           
static JWNL.OS UNDEFINED
           
static JWNL.OS UNIX
           
static JWNL.OS WINDOWS
           
 
Method Summary
static double getJavaVersion()
           
static JWNL.OS getOS()
          Get the current OS.
static java.util.ResourceBundle getResourceBundle()
           
static JWNL.Version getVersion()
          Get the current WordNet version
static void initialize(java.io.InputStream propertiesStream)
          Parses a properties file and sets the ready state at various points.
static boolean isInitialized()
           
static java.lang.String resolveMessage(java.lang.String msg)
          Resolve msg in one of the resource bundles used by the system
static java.lang.String resolveMessage(java.lang.String msg, java.lang.Object obj)
          Resolve msg in one of the resource bundles used by the system.
static java.lang.String resolveMessage(java.lang.String msg, java.lang.Object[] params)
          Resolve msg in one of the resource bundles used by the system
static void shutdown()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WINDOWS

public static final JWNL.OS WINDOWS

UNIX

public static final JWNL.OS UNIX

MAC

public static final JWNL.OS MAC

UNDEFINED

public static final JWNL.OS UNDEFINED

DEFINED_OS_ARRAY

public static final JWNL.OS[] DEFINED_OS_ARRAY

OS_PROPERTY_NAME

public static final java.lang.String OS_PROPERTY_NAME
See Also:
Constant Field Values
Method Detail

initialize

public static void initialize(java.io.InputStream propertiesStream)
                       throws JWNLException
Parses a properties file and sets the ready state at various points. Initializes the various PointerType, Adjective, and VerbFrame necessary preprocessing items.

Parameters:
propertiesStream - the properties file stream
Throws:
JWNLException - various JWNL exceptions, depending on where this fails

isInitialized

public static boolean isInitialized()

getOS

public static JWNL.OS getOS()
Get the current OS.


getJavaVersion

public static double getJavaVersion()

getVersion

public static JWNL.Version getVersion()
Get the current WordNet version


getResourceBundle

public static java.util.ResourceBundle getResourceBundle()

resolveMessage

public static java.lang.String resolveMessage(java.lang.String msg)
Resolve msg in one of the resource bundles used by the system


resolveMessage

public static java.lang.String resolveMessage(java.lang.String msg,
                                              java.lang.Object obj)
Resolve msg in one of the resource bundles used by the system.

Parameters:
obj - parameter to insert into the resolved message

resolveMessage

public static java.lang.String resolveMessage(java.lang.String msg,
                                              java.lang.Object[] params)
Resolve msg in one of the resource bundles used by the system

Parameters:
params - parameters to insert into the resolved message

shutdown

public static void shutdown()