public class SpellChecker extends SemanticProcessor implements com.exalead.util.Checkable, java.io.Serializable
SemanticProcessor.Transformer<T>, SemanticProcessor.Visitor
Modifier and Type | Field and Description |
---|---|
java.lang.String |
language |
java.lang.String |
resourceDir |
SpellCheckParameters |
spellCheckParameters |
contexts, name, src
Constructor and Description |
---|
SpellChecker() |
SpellChecker(SpellChecker o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(SemanticProcessor.Transformer<T> transformer,
T[] t) |
void |
accept(SemanticProcessor.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SpellChecker.
|
static SpellChecker |
fromString(java.lang.String s)
String representation of this SpellChecker.
|
java.lang.String |
getLanguage()
Language for which the spellchecker is activated.
|
java.lang.String |
getResourceDir()
URL for the resource (data://, file:// or resource://)
|
SpellCheckParameters |
getSpellCheckParameters() |
SpellChecker |
makeCopy()
Creates and returns a deep copy of this SpellChecker.
|
static SpellChecker |
readFrom(java.io.InputStream is)
Read this SpellChecker from an XML fragment.
|
void |
setLanguage(java.lang.String language)
Language for which the spellchecker is activated.
|
void |
setResourceDir(java.lang.String resourceDir)
URL for the resource (data://, file:// or resource://)
|
void |
setSpellCheckParameters(SpellCheckParameters spellCheckParameters) |
java.lang.String |
toString()
String representation of this SpellChecker.
|
SpellChecker |
withContexts(java.lang.String contexts) |
SpellChecker |
withLanguage(java.lang.String language) |
SpellChecker |
withName(java.lang.String name) |
SpellChecker |
withResourceDir(java.lang.String resourceDir) |
SpellChecker |
withSpellCheckParameters(SpellCheckParameters spellCheckParameters) |
SpellChecker |
withSrc(java.lang.String src)
Deprecated.
|
void |
writeTo(java.io.OutputStream os)
Write this SpellChecker as an XML fragment
|
getContexts, getName, getSrc, setContexts, setName, setSrc
public SpellCheckParameters spellCheckParameters
public java.lang.String resourceDir
public java.lang.String language
public SpellChecker()
public SpellChecker(SpellChecker o)
public SpellChecker withName(java.lang.String name)
withName
in class SemanticProcessor
public SpellChecker withContexts(java.lang.String contexts)
withContexts
in class SemanticProcessor
@Deprecated public SpellChecker withSrc(java.lang.String src)
withSrc
in class SemanticProcessor
public void setSpellCheckParameters(SpellCheckParameters spellCheckParameters)
public SpellCheckParameters getSpellCheckParameters()
public SpellChecker withSpellCheckParameters(SpellCheckParameters spellCheckParameters)
public void setResourceDir(java.lang.String resourceDir)
public java.lang.String getResourceDir()
public SpellChecker withResourceDir(java.lang.String resourceDir)
public void setLanguage(java.lang.String language)
public java.lang.String getLanguage()
public SpellChecker withLanguage(java.lang.String language)
public SpellChecker makeCopy()
makeCopy
in class SemanticProcessor
public static SpellChecker readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class SemanticProcessor
javax.xml.bind.JAXBException
java.io.IOException
public static SpellChecker fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class SemanticProcessor
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class SemanticProcessor
com.exalead.util.TypedException
public void accept(SemanticProcessor.Visitor visitor) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
public <T> T accept(SemanticProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.