public class SWConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SWConfig.StopWordsOnlyQueryAction |
static class |
SWConfig.StopWordsOnlyQueryReportMode |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_STOP_WORDS_ONLY_QUERY_ACTION |
static java.lang.String |
DEFAULT_STOP_WORDS_ONLY_QUERY_REPORT_MODE |
java.lang.String |
stopWordsOnlyQueryAction |
java.lang.String |
stopWordsOnlyQueryReportMode |
java.util.List<SWList> |
sWList |
Constructor and Description |
---|
SWConfig() |
SWConfig(SWConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SWConfig.
|
static SWConfig |
fromString(java.lang.String s)
String representation of this SWConfig.
|
java.lang.String |
getStopWordsOnlyQueryAction()
What to do when a query contains only stop words.
|
SWConfig.StopWordsOnlyQueryAction |
getStopWordsOnlyQueryActionAsEnum()
What to do when a query contains only stop words.
|
java.lang.String |
getStopWordsOnlyQueryReportMode()
Specifies how to report a stop-word only query error in 'Troubleshooting > Logs':
quiet: No log.
local: Error is reported in the Process log.
global: Error is reported in both Process and Global logs.
|
SWConfig.StopWordsOnlyQueryReportMode |
getStopWordsOnlyQueryReportModeAsEnum()
Specifies how to report a stop-word only query error in 'Troubleshooting > Logs':
quiet: No log.
local: Error is reported in the Process log.
global: Error is reported in both Process and Global logs.
|
java.util.List<SWList> |
getSWList() |
static boolean |
isA(java.lang.String str,
SWConfig.StopWordsOnlyQueryAction item) |
static boolean |
isA(java.lang.String str,
SWConfig.StopWordsOnlyQueryReportMode item) |
static boolean |
isOneOf(java.lang.String str,
SWConfig.StopWordsOnlyQueryAction... items) |
static boolean |
isOneOf(java.lang.String str,
SWConfig.StopWordsOnlyQueryReportMode... items) |
SWConfig |
makeCopy()
Creates and returns a deep copy of this SWConfig.
|
static SWConfig |
readFrom(java.io.InputStream is)
Read this SWConfig from an XML fragment.
|
void |
setStopWordsOnlyQueryAction(java.lang.String stopWordsOnlyQueryAction)
What to do when a query contains only stop words.
|
void |
setStopWordsOnlyQueryAction(SWConfig.StopWordsOnlyQueryAction item)
What to do when a query contains only stop words.
|
void |
setStopWordsOnlyQueryReportMode(java.lang.String stopWordsOnlyQueryReportMode)
Specifies how to report a stop-word only query error in 'Troubleshooting > Logs':
quiet: No log.
local: Error is reported in the Process log.
global: Error is reported in both Process and Global logs.
|
void |
setStopWordsOnlyQueryReportMode(SWConfig.StopWordsOnlyQueryReportMode item)
Specifies how to report a stop-word only query error in 'Troubleshooting > Logs':
quiet: No log.
local: Error is reported in the Process log.
global: Error is reported in both Process and Global logs.
|
java.lang.String |
toString()
String representation of this SWConfig.
|
SWConfig |
withStopWordsOnlyQueryAction(java.lang.String stopWordsOnlyQueryAction) |
SWConfig |
withStopWordsOnlyQueryReportMode(java.lang.String stopWordsOnlyQueryReportMode) |
SWConfig |
withSWList(java.util.Collection<SWList> __values) |
SWConfig |
withSWList(SWList... __values) |
void |
writeTo(java.io.OutputStream os)
Write this SWConfig as an XML fragment
|
public java.util.List<SWList> sWList
public java.lang.String stopWordsOnlyQueryAction
public static final java.lang.String DEFAULT_STOP_WORDS_ONLY_QUERY_ACTION
public java.lang.String stopWordsOnlyQueryReportMode
public static final java.lang.String DEFAULT_STOP_WORDS_ONLY_QUERY_REPORT_MODE
public SWConfig()
public SWConfig(SWConfig o)
public static boolean isA(java.lang.String str, SWConfig.StopWordsOnlyQueryAction item)
public static boolean isOneOf(java.lang.String str, SWConfig.StopWordsOnlyQueryAction... items)
public void setStopWordsOnlyQueryAction(SWConfig.StopWordsOnlyQueryAction item)
public SWConfig.StopWordsOnlyQueryAction getStopWordsOnlyQueryActionAsEnum()
public static boolean isA(java.lang.String str, SWConfig.StopWordsOnlyQueryReportMode item)
public static boolean isOneOf(java.lang.String str, SWConfig.StopWordsOnlyQueryReportMode... items)
public void setStopWordsOnlyQueryReportMode(SWConfig.StopWordsOnlyQueryReportMode item)
public SWConfig.StopWordsOnlyQueryReportMode getStopWordsOnlyQueryReportModeAsEnum()
public java.util.List<SWList> getSWList()
public void setStopWordsOnlyQueryAction(java.lang.String stopWordsOnlyQueryAction)
public java.lang.String getStopWordsOnlyQueryAction()
public SWConfig withStopWordsOnlyQueryAction(java.lang.String stopWordsOnlyQueryAction)
public void setStopWordsOnlyQueryReportMode(java.lang.String stopWordsOnlyQueryReportMode)
public java.lang.String getStopWordsOnlyQueryReportMode()
public SWConfig withStopWordsOnlyQueryReportMode(java.lang.String stopWordsOnlyQueryReportMode)
public SWConfig makeCopy()
public static SWConfig 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
javax.xml.bind.JAXBException
java.io.IOException
public static SWConfig 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 java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.