public class JSpellWordBundle
extends java.lang.Object
Constructor and Description |
---|
JSpellWordBundle(java.lang.String word,
int position,
boolean specialCase,
boolean forceUpperCase)
Construct a JSpellWordBundle with the word, its position, whether it should be
proper, and whether to force upper case suggestions when checking for errors.
|
JSpellWordBundle(java.lang.String word,
int position,
boolean specialCase,
boolean forceUpperCase,
boolean ignoreCheck)
Construct a JSpellWordBundle with the word, its position, whether it should be
proper, whether to force upper case suggestions when checking for errors, and
whether this JSpellWordBundle should be ignored when spell checking.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getForceUpperCase()
Return value of getForceUpperCase.
|
boolean |
getIgnoreCheck()
Return value of ignoreCheck.
|
java.lang.String |
getLower_FirstCharOnly()
Return the word with the first character as lower case.
|
static java.lang.String |
getLower_FirstCharOnly(java.lang.String original)
Static - Return the word with the first character as lower case.
|
java.lang.String |
getLower()
Return the word as lower case.
|
int |
getPosition()
Return the position.
|
java.lang.String |
getProper()
Return the word with the first character capitalized.
|
static java.lang.String |
getProper(java.lang.String original)
Static - Return the word with the first character capitalized.
|
boolean |
getSpecialCase()
Return true if word should be upper case.
|
static java.lang.String |
getUpper_FirstCharOnly(java.lang.String original)
Static - Return the word with the first character as upper case.
|
boolean |
getUpperCase()
Return whether word is all upper case
|
java.lang.String |
getWord()
Return the word.
|
boolean |
isProper()
Return true if first character is upper case.
|
static boolean |
isProper(java.lang.String original)
Return true if first character is upper case.
|
void |
setForceUpperCase(boolean forceUpperCase)
Set the value of forceUpperCase.
|
void |
setSpecialCase(boolean specialCase)
Set the value of specialCase.
|
void |
setUpperCase(boolean upperCase)
Set the value of upperCase.
|
public JSpellWordBundle(java.lang.String word, int position, boolean specialCase, boolean forceUpperCase)
word
- a String.position
- an int.specialCase
- true or falseforceUpperCase
- true or falsepublic JSpellWordBundle(java.lang.String word, int position, boolean specialCase, boolean forceUpperCase, boolean ignoreCheck)
word
- a String.position
- an int.specialCase
- true or false.forceUpperCase
- true or false.ignoreCheck
- true or false.public final boolean getIgnoreCheck()
public final boolean getForceUpperCase()
public final void setForceUpperCase(boolean forceUpperCase)
forceUpperCase
- true or false.public final java.lang.String getWord()
public final java.lang.String getLower()
public final boolean isProper()
public static final boolean isProper(java.lang.String original)
original
- a String.public final java.lang.String getProper()
public static final java.lang.String getProper(java.lang.String original)
original
- a String.public final java.lang.String getLower_FirstCharOnly()
public static final java.lang.String getLower_FirstCharOnly(java.lang.String original)
original
- a String.public static final java.lang.String getUpper_FirstCharOnly(java.lang.String original)
original
- a String.public final boolean getSpecialCase()
public final boolean getUpperCase()
public final void setSpecialCase(boolean specialCase)
specialCase
- true or false.public final void setUpperCase(boolean upperCase)
upperCase
- true or false.public final int getPosition()
JSpell SDK - Spell Checker for the Java Platform
Copyright © 2009-2019 Page Scholar Inc, All Rights Reserved - https://www.jspell.com