public class PhoneticModule extends QueryExpansionModule implements com.exalead.util.Checkable, java.io.Serializable
QueryExpansionModule.Transformer<T>, QueryExpansionModule.Visitor
Modifier and Type | Field and Description |
---|---|
java.lang.String |
language |
java.lang.String |
resourceFile |
name
Constructor and Description |
---|
PhoneticModule() |
PhoneticModule(PhoneticModule o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(QueryExpansionModule.Transformer<T> transformer,
T[] t) |
void |
accept(QueryExpansionModule.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this PhoneticModule.
|
static PhoneticModule |
fromString(java.lang.String s)
String representation of this PhoneticModule.
|
java.lang.String |
getLanguage()
Optional language code.
|
java.lang.String |
getResourceFile()
Optional phonetic rules file.
|
PhoneticModule |
makeCopy()
Creates and returns a deep copy of this PhoneticModule.
|
static PhoneticModule |
readFrom(java.io.InputStream is)
Read this PhoneticModule from an XML fragment.
|
void |
setLanguage(java.lang.String language)
Optional language code.
|
void |
setResourceFile(java.lang.String resourceFile)
Optional phonetic rules file.
|
java.lang.String |
toString()
String representation of this PhoneticModule.
|
PhoneticModule |
withLanguage(java.lang.String language) |
PhoneticModule |
withName(java.lang.String name) |
PhoneticModule |
withResourceFile(java.lang.String resourceFile) |
void |
writeTo(java.io.OutputStream os)
Write this PhoneticModule as an XML fragment
|
getName, setName
public java.lang.String language
public java.lang.String resourceFile
public PhoneticModule()
public PhoneticModule(PhoneticModule o)
public PhoneticModule withName(java.lang.String name)
withName
in class QueryExpansionModule
public void setLanguage(java.lang.String language)
public java.lang.String getLanguage()
public PhoneticModule withLanguage(java.lang.String language)
public void setResourceFile(java.lang.String resourceFile)
public java.lang.String getResourceFile()
public PhoneticModule withResourceFile(java.lang.String resourceFile)
public PhoneticModule makeCopy()
makeCopy
in class QueryExpansionModule
public static PhoneticModule 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 QueryExpansionModule
javax.xml.bind.JAXBException
java.io.IOException
public static PhoneticModule 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 QueryExpansionModule
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class QueryExpansionModule
com.exalead.util.TypedException
public void accept(QueryExpansionModule.Visitor visitor) throws com.exalead.util.TypedException
accept
in class QueryExpansionModule
com.exalead.util.TypedException
public <T> T accept(QueryExpansionModule.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class QueryExpansionModule
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.