com.jivesoftware.forum.action
Class InlineSpellAction
java.lang.Object
com.jivesoftware.forum.action.InlineSpellAction
- All Implemented Interfaces:
- com.opensymphony.xwork.Action
public class InlineSpellAction
- extends java.lang.Object
- implements com.opensymphony.xwork.Action
This class is designed to be called with an array of words to check
and returns a string in the format:
data = [
[1],
[0,["suggestion1", "suggestion2"]],
[2]
]
Each element in the array corresponds to a passed in word, a response of 1 indicates no spelling
error, a response of 0 indicates an error with suggestions and a response of 2 indicates a
duplicate word.
Fields inherited from interface com.opensymphony.xwork.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Method Summary |
static java.lang.String |
checkWords(java.lang.String[] words)
|
java.lang.String |
execute()
|
java.lang.String[] |
getWords()
|
void |
setWords(java.lang.String[] words)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InlineSpellAction
public InlineSpellAction()
getWords
public java.lang.String[] getWords()
setWords
public void setWords(java.lang.String[] words)
execute
public java.lang.String execute()
throws java.lang.Exception
- Specified by:
execute
in interface com.opensymphony.xwork.Action
- Throws:
java.lang.Exception
checkWords
public static java.lang.String checkWords(java.lang.String[] words)
Copyright © 1999-2006 Jive Software.