public class SuggestConfig
extends exa.bee.config.Versioned
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.util.List<Suggest> |
suggest |
java.util.List<SuggestDispatcher> |
suggestDispatcher |
Constructor and Description |
---|
SuggestConfig() |
SuggestConfig(SuggestConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SuggestConfig.
|
static SuggestConfig |
fromString(java.lang.String s)
String representation of this SuggestConfig.
|
java.util.List<Suggest> |
getSuggest()
List of Suggest.
|
java.util.Map<java.lang.String,Suggest> |
getSuggestAsMap()
Get the map of Suggest, indexed by suggestName
|
Suggest |
getSuggestBySuggestName(java.lang.String _lookup)
Get the Suggest for which the suggestName matches _lookup
|
java.util.List<SuggestDispatcher> |
getSuggestDispatcher()
List of SuggestDispatcher.
|
java.util.Map<java.lang.String,SuggestDispatcher> |
getSuggestDispatcherAsMap()
Get the map of SuggestDispatcher, indexed by name
|
SuggestDispatcher |
getSuggestDispatcherByName(java.lang.String _lookup)
Get the SuggestDispatcher for which the name matches _lookup
|
SuggestConfig |
makeCopy()
Creates and returns a deep copy of this SuggestConfig.
|
static SuggestConfig |
readFrom(java.io.InputStream is)
Read this SuggestConfig from an XML fragment.
|
boolean |
removeSuggestBySuggestName(java.lang.String _lookup)
Removes the Suggest for which the suggestName matches _lookup
|
boolean |
removeSuggestDispatcherByName(java.lang.String _lookup)
Removes the SuggestDispatcher for which the name matches _lookup
|
java.lang.String |
toString()
String representation of this SuggestConfig.
|
SuggestConfig |
withSuggest(java.util.Collection<Suggest> __values) |
SuggestConfig |
withSuggest(Suggest... __values)
List of Suggest.
|
SuggestConfig |
withSuggestDispatcher(java.util.Collection<SuggestDispatcher> __values) |
SuggestConfig |
withSuggestDispatcher(SuggestDispatcher... __values)
List of SuggestDispatcher.
|
SuggestConfig |
withVersion(long version) |
SuggestConfig |
withVersion(java.lang.Long version) |
void |
writeTo(java.io.OutputStream os)
Write this SuggestConfig as an XML fragment
|
public java.util.List<Suggest> suggest
public java.util.List<SuggestDispatcher> suggestDispatcher
public SuggestConfig()
public SuggestConfig(SuggestConfig o)
public SuggestConfig withVersion(long version)
withVersion
in class exa.bee.config.Versioned
public SuggestConfig withVersion(java.lang.Long version)
withVersion
in class exa.bee.config.Versioned
public java.util.List<Suggest> getSuggest()
public Suggest getSuggestBySuggestName(java.lang.String _lookup)
public java.util.Map<java.lang.String,Suggest> getSuggestAsMap()
public boolean removeSuggestBySuggestName(java.lang.String _lookup)
public SuggestConfig withSuggest(Suggest... __values)
public SuggestConfig withSuggest(java.util.Collection<Suggest> __values)
public java.util.List<SuggestDispatcher> getSuggestDispatcher()
public SuggestDispatcher getSuggestDispatcherByName(java.lang.String _lookup)
public java.util.Map<java.lang.String,SuggestDispatcher> getSuggestDispatcherAsMap()
public boolean removeSuggestDispatcherByName(java.lang.String _lookup)
public SuggestConfig withSuggestDispatcher(SuggestDispatcher... __values)
public SuggestConfig withSuggestDispatcher(java.util.Collection<SuggestDispatcher> __values)
public SuggestConfig makeCopy()
makeCopy
in class exa.bee.config.Versioned
public static SuggestConfig 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 exa.bee.config.Versioned
javax.xml.bind.JAXBException
java.io.IOException
public static SuggestConfig 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 exa.bee.config.Versioned
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class exa.bee.config.Versioned
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.