net.sf.extjwnl
Class JWNL.OS

java.lang.Object
  extended by net.sf.extjwnl.JWNL.OS
Enclosing class:
JWNL

public static final class JWNL.OS
extends Object

Used to create constants that represent the major categories of operating systems.


Constructor Summary
protected JWNL.OS(String name)
           
 
Method Summary
 boolean matches(String testOS)
          Returns true if testOS is a version of this OS.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JWNL.OS

protected JWNL.OS(String name)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

matches

public boolean matches(String testOS)
Returns true if testOS is a version of this OS. For example, calling WINDOWS.matches("Windows 95") returns true.

Parameters:
testOS - OS string
Returns:
true if testOS is a version of this OS


Copyright © 2011. All Rights Reserved.