public class DynamicFieldSuggest extends IndexFieldSuggest implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
DynamicFieldSuggest.Mode |
static interface |
DynamicFieldSuggest.Transformer<T> |
static interface |
DynamicFieldSuggest.Visitor |
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_KEEP_CONTEXT |
static java.lang.String |
DEFAULT_MODE |
boolean |
keepContext |
java.lang.String |
mode |
java.lang.String |
pattern |
DEFAULT_QUERY, indexField, logic, query, searchServerInstance, target
suggestBuildConfig, suggestBuildTrigger
blackListURL, suggestName, suggestQueryConfig, whiteListURL
Constructor and Description |
---|
DynamicFieldSuggest() |
DynamicFieldSuggest(DynamicFieldSuggest o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(BuildableSuggest.Transformer<T> transformer,
T[] t) |
void |
accept(BuildableSuggest.Visitor visitor) |
<T> T |
accept(DynamicFieldSuggest.Transformer<T> transformer,
T[] t) |
void |
accept(DynamicFieldSuggest.Visitor visitor) |
<T> T |
accept(IndexFieldSuggest.Transformer<T> transformer,
T[] t) |
void |
accept(IndexFieldSuggest.Visitor visitor) |
<T> T |
accept(SearchBasedSuggest.Transformer<T> transformer,
T[] t) |
void |
accept(SearchBasedSuggest.Visitor visitor) |
<T> T |
accept(Suggest.Transformer<T> transformer,
T[] t) |
void |
accept(Suggest.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this DynamicFieldSuggest.
|
static DynamicFieldSuggest |
fromString(java.lang.String s)
String representation of this DynamicFieldSuggest.
|
java.lang.String |
getMode()
Matching mode.
|
DynamicFieldSuggest.Mode |
getModeAsEnum()
Matching mode.
|
java.lang.String |
getPattern()
The string to look for.
|
static boolean |
isA(java.lang.String str,
DynamicFieldSuggest.Mode item) |
boolean |
isKeepContext()
When set to True, the context is kept in suggest entry.
|
static boolean |
isOneOf(java.lang.String str,
DynamicFieldSuggest.Mode... items) |
DynamicFieldSuggest |
makeCopy()
Creates and returns a deep copy of this DynamicFieldSuggest.
|
static DynamicFieldSuggest |
readFrom(java.io.InputStream is)
Read this DynamicFieldSuggest from an XML fragment.
|
void |
setKeepContext(boolean keepContext)
When set to True, the context is kept in suggest entry.
|
void |
setMode(DynamicFieldSuggest.Mode item)
Matching mode.
|
void |
setMode(java.lang.String mode)
Matching mode.
|
void |
setPattern(java.lang.String pattern)
The string to look for.
|
java.lang.String |
toString()
String representation of this DynamicFieldSuggest.
|
DynamicFieldSuggest |
withBlackListURL(java.lang.String blackListURL) |
DynamicFieldSuggest |
withIndexField(java.lang.String indexField) |
DynamicFieldSuggest |
withKeepContext(boolean keepContext) |
DynamicFieldSuggest |
withKeepContext(java.lang.Boolean keepContext) |
DynamicFieldSuggest |
withLogic(java.lang.String logic) |
DynamicFieldSuggest |
withMode(java.lang.String mode) |
DynamicFieldSuggest |
withPattern(java.lang.String pattern) |
DynamicFieldSuggest |
withQuery(java.lang.String query) |
DynamicFieldSuggest |
withSearchServerInstance(java.lang.String searchServerInstance) |
DynamicFieldSuggest |
withSuggestBuildConfig(SuggestBuildConfig suggestBuildConfig) |
DynamicFieldSuggest |
withSuggestBuildTrigger(SuggestBuildTrigger suggestBuildTrigger) |
DynamicFieldSuggest |
withSuggestName(java.lang.String suggestName) |
DynamicFieldSuggest |
withSuggestQueryConfig(SuggestQueryConfig suggestQueryConfig) |
DynamicFieldSuggest |
withTarget(java.lang.String target) |
DynamicFieldSuggest |
withWhiteListURL(java.lang.String whiteListURL) |
void |
writeTo(java.io.OutputStream os)
Write this DynamicFieldSuggest as an XML fragment
|
getIndexField, getLogic, getQuery, getSearchServerInstance, getTarget, setIndexField, setLogic, setQuery, setSearchServerInstance, setTarget
getSuggestBuildConfig, getSuggestBuildTrigger, setSuggestBuildConfig, setSuggestBuildTrigger
getBlackListURL, getSuggestName, getSuggestQueryConfig, getWhiteListURL, setBlackListURL, setSuggestName, setSuggestQueryConfig, setWhiteListURL
public java.lang.String mode
public static final java.lang.String DEFAULT_MODE
public java.lang.String pattern
public boolean keepContext
public static final boolean DEFAULT_KEEP_CONTEXT
public DynamicFieldSuggest()
public DynamicFieldSuggest(DynamicFieldSuggest o)
public static boolean isA(java.lang.String str, DynamicFieldSuggest.Mode item)
public static boolean isOneOf(java.lang.String str, DynamicFieldSuggest.Mode... items)
public void setMode(DynamicFieldSuggest.Mode item)
public DynamicFieldSuggest.Mode getModeAsEnum()
public DynamicFieldSuggest withLogic(java.lang.String logic)
withLogic
in class IndexFieldSuggest
public DynamicFieldSuggest withTarget(java.lang.String target)
withTarget
in class IndexFieldSuggest
public DynamicFieldSuggest withIndexField(java.lang.String indexField)
withIndexField
in class IndexFieldSuggest
public DynamicFieldSuggest withQuery(java.lang.String query)
withQuery
in class IndexFieldSuggest
public DynamicFieldSuggest withSearchServerInstance(java.lang.String searchServerInstance)
withSearchServerInstance
in class IndexFieldSuggest
public DynamicFieldSuggest withSuggestBuildTrigger(SuggestBuildTrigger suggestBuildTrigger)
withSuggestBuildTrigger
in class IndexFieldSuggest
public DynamicFieldSuggest withSuggestBuildConfig(SuggestBuildConfig suggestBuildConfig)
withSuggestBuildConfig
in class IndexFieldSuggest
public DynamicFieldSuggest withSuggestName(java.lang.String suggestName)
withSuggestName
in class IndexFieldSuggest
public DynamicFieldSuggest withWhiteListURL(java.lang.String whiteListURL)
withWhiteListURL
in class IndexFieldSuggest
public DynamicFieldSuggest withBlackListURL(java.lang.String blackListURL)
withBlackListURL
in class IndexFieldSuggest
public DynamicFieldSuggest withSuggestQueryConfig(SuggestQueryConfig suggestQueryConfig)
withSuggestQueryConfig
in class IndexFieldSuggest
public void setMode(java.lang.String mode)
public java.lang.String getMode()
public DynamicFieldSuggest withMode(java.lang.String mode)
public void setPattern(java.lang.String pattern)
public java.lang.String getPattern()
public DynamicFieldSuggest withPattern(java.lang.String pattern)
public void setKeepContext(boolean keepContext)
public boolean isKeepContext()
public DynamicFieldSuggest withKeepContext(boolean keepContext)
public DynamicFieldSuggest withKeepContext(java.lang.Boolean keepContext)
public DynamicFieldSuggest makeCopy()
makeCopy
in class IndexFieldSuggest
public static DynamicFieldSuggest 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 IndexFieldSuggest
javax.xml.bind.JAXBException
java.io.IOException
public static DynamicFieldSuggest 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 IndexFieldSuggest
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class IndexFieldSuggest
com.exalead.util.TypedException
public void accept(DynamicFieldSuggest.Visitor visitor) throws com.exalead.util.TypedException
com.exalead.util.TypedException
public void accept(IndexFieldSuggest.Visitor visitor) throws com.exalead.util.TypedException
accept
in class IndexFieldSuggest
com.exalead.util.TypedException
public void accept(SearchBasedSuggest.Visitor visitor) throws com.exalead.util.TypedException
accept
in class IndexFieldSuggest
com.exalead.util.TypedException
public void accept(BuildableSuggest.Visitor visitor) throws com.exalead.util.TypedException
accept
in class IndexFieldSuggest
com.exalead.util.TypedException
public void accept(Suggest.Visitor visitor) throws com.exalead.util.TypedException
accept
in class IndexFieldSuggest
com.exalead.util.TypedException
public <T> T accept(DynamicFieldSuggest.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
com.exalead.util.TypedException
public <T> T accept(IndexFieldSuggest.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class IndexFieldSuggest
com.exalead.util.TypedException
public <T> T accept(SearchBasedSuggest.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class IndexFieldSuggest
com.exalead.util.TypedException
public <T> T accept(BuildableSuggest.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class IndexFieldSuggest
com.exalead.util.TypedException
public <T> T accept(Suggest.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class IndexFieldSuggest
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.