com.jspell.console
Class IndexBuild

java.lang.Object
  extended by com.jspell.console.IndexBuild
All Implemented Interfaces:
java.lang.Runnable

public class IndexBuild
extends java.lang.Object
implements java.lang.Runnable

Utility class to build a JSpell Index. Use the Console application or see the examples in the com.jspell.demo package.


Constructor Summary
IndexBuild()
           
 
Method Summary
 void build()
           
 java.lang.String getDict()
          Getter for property dict.
 java.lang.String getIndexCountry()
          Getter for property indexCountry.
 java.lang.String getIndexLanguage()
          Getter for property indexLanguage.
 java.lang.String getVersion()
          Getter for property version.
static boolean ISOValidate(java.lang.String language, java.lang.String country)
          Validates the ISO language and country codes against the ISO standards.
 void run()
           
 void setDict(java.lang.String dict)
          Setter for property dict.
 void setIndexCountry(java.lang.String indexCountry)
          Setter for property indexCountry.
 void setIndexLanguage(java.lang.String indexLanguage)
          Setter for property indexLanguage.
 void setVersion(java.lang.String version)
          Setter for property version.
static char swap(char value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexBuild

public IndexBuild()
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

build

public void build()

swap

public static char swap(char value)

ISOValidate

public static boolean ISOValidate(java.lang.String language,
                                  java.lang.String country)
Validates the ISO language and country codes against the ISO standards.

Parameters:
language - a String.
country - a String.
Returns:
true or false.

getIndexLanguage

public java.lang.String getIndexLanguage()
Getter for property indexLanguage.

Returns:
Value of property indexLanguage.

setIndexLanguage

public void setIndexLanguage(java.lang.String indexLanguage)
Setter for property indexLanguage.

Parameters:
indexLanguage - New value of property indexLanguage.

getIndexCountry

public java.lang.String getIndexCountry()
Getter for property indexCountry.

Returns:
Value of property indexCountry.

setIndexCountry

public void setIndexCountry(java.lang.String indexCountry)
Setter for property indexCountry.

Parameters:
indexCountry - New value of property indexCountry.

getVersion

public java.lang.String getVersion()
Getter for property version.

Returns:
Value of property version.

setVersion

public void setVersion(java.lang.String version)
Setter for property version.

Parameters:
version - New value of property version.

getDict

public java.lang.String getDict()
Getter for property dict.

Returns:
Value of property dict.

setDict

public void setDict(java.lang.String dict)
Setter for property dict.

Parameters:
dict - New value of property dict.


JSpell SDK - Spell Checker for the Java ™ Platform
Copyright © 2009 Page Scholar Inc, All Rights Reserved - http://www.jspell.com