public class DefaultExpressionBuilderConfig extends java.lang.Object implements ExpressionBuilderConfig, ExpressionBuilderConfig.Preferences, Disposable
ExpressionBuilderConfig.Preferences
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
Constructor and Description |
---|
DefaultExpressionBuilderConfig(ExpressionEvaluatorSwingManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
addElement(Element element) |
void |
addPreviewSymbolTable(SymbolTable symbolTable) |
void |
addSuggestionFactory(Factory factory) |
void |
addSymbolTable(java.lang.String name) |
void |
addSymbolTable(SymbolTable symbolTable) |
boolean |
allowAggregates() |
boolean |
allowAggregates(boolean allow) |
java.lang.Object |
clone()
Creates a copy of the object.
|
ExpressionBuilderConfig |
cloneConfig() |
void |
dispose()
Disposes the current object, to allow it to close and dispose any used
resources.
|
java.util.List<Element> |
getAddedElements() |
java.util.function.Function<java.lang.String,java.lang.Integer> |
getAllowedFunctions() |
java.util.List<Element> |
getElements() |
ExpressionBuilderConfig.Preferences |
getPreferences() |
SymbolTable |
getPreviewSymbolTable() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
java.lang.Object |
getProperty(java.lang.String string) |
boolean |
getShowLabelsOfElements() |
int |
getSimpleElementsLimit()
Time in secons to use when obtains the list of elements.
|
java.lang.String |
getSuggestion(Expression expression) |
java.util.Collection<Factory> |
getSuggestionFactories() |
java.util.Collection<SymbolTable> |
getSymbolTables() |
java.util.function.Function<java.lang.String,java.lang.Integer> |
isFunctionAllowed() |
boolean |
isSQLCompatible() |
void |
removeAddedElements() |
void |
removeAllElements() |
void |
removeAllSymbolTables() |
void |
removeElement(java.lang.String elementName) |
void |
removeSymbolTable(java.lang.String name) |
void |
setAllowedFunctions(java.util.function.Function<java.lang.String,java.lang.Integer> allow) |
void |
setPreviewSymbolTable(SymbolTable symbolTable) |
void |
setProperty(java.lang.String string,
java.lang.Object o) |
void |
setShowLabelsOfElements(boolean showLabels) |
void |
setSimpleElementsLimit(int limit)
Set the time in secons to use to obtain the list of elements.
|
void |
setSQLCompatible(boolean SQLCompatible) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
public DefaultExpressionBuilderConfig(ExpressionEvaluatorSwingManager manager)
public ExpressionBuilderConfig.Preferences getPreferences()
getPreferences
in interface ExpressionBuilderConfig
public java.util.Collection<Factory> getSuggestionFactories()
getSuggestionFactories
in interface ExpressionBuilderConfig
public java.util.function.Function<java.lang.String,java.lang.Integer> getAllowedFunctions()
getAllowedFunctions
in interface ExpressionBuilderConfig
public java.util.List<Element> getElements()
getElements
in interface ExpressionBuilderConfig
public void addElement(Element element)
addElement
in interface ExpressionBuilderConfig
public void removeElement(java.lang.String elementName)
removeElement
in interface ExpressionBuilderConfig
public java.util.Collection<SymbolTable> getSymbolTables()
getSymbolTables
in interface ExpressionBuilderConfig
public void addSymbolTable(java.lang.String name)
addSymbolTable
in interface ExpressionBuilderConfig
public void addSymbolTable(SymbolTable symbolTable)
addSymbolTable
in interface ExpressionBuilderConfig
public void removeAllSymbolTables()
removeAllSymbolTables
in interface ExpressionBuilderConfig
public void removeAllElements()
removeAllElements
in interface ExpressionBuilderConfig
public void removeAddedElements()
removeAddedElements
in interface ExpressionBuilderConfig
public int getSimpleElementsLimit()
ExpressionBuilderConfig.Preferences
getSimpleElementsLimit
in interface ExpressionBuilderConfig.Preferences
public void setSimpleElementsLimit(int limit)
ExpressionBuilderConfig.Preferences
setSimpleElementsLimit
in interface ExpressionBuilderConfig.Preferences
public void removeSymbolTable(java.lang.String name)
removeSymbolTable
in interface ExpressionBuilderConfig
public SymbolTable getPreviewSymbolTable()
getPreviewSymbolTable
in interface ExpressionBuilderConfig
public void setPreviewSymbolTable(SymbolTable symbolTable)
setPreviewSymbolTable
in interface ExpressionBuilderConfig
public void addPreviewSymbolTable(SymbolTable symbolTable)
addPreviewSymbolTable
in interface ExpressionBuilderConfig
public void setSQLCompatible(boolean SQLCompatible)
setSQLCompatible
in interface ExpressionBuilderConfig.Preferences
public boolean isSQLCompatible()
isSQLCompatible
in interface ExpressionBuilderConfig.Preferences
public java.lang.Object getProperty(java.lang.String string)
getProperty
in interface PropertiesSupport
public void setProperty(java.lang.String string, java.lang.Object o)
setProperty
in interface PropertiesSupport
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties
in interface PropertiesSupport
public boolean getShowLabelsOfElements()
getShowLabelsOfElements
in interface ExpressionBuilderConfig.Preferences
public void setShowLabelsOfElements(boolean showLabels)
setShowLabelsOfElements
in interface ExpressionBuilderConfig.Preferences
public boolean allowAggregates()
allowAggregates
in interface ExpressionBuilderConfig
public boolean allowAggregates(boolean allow)
allowAggregates
in interface ExpressionBuilderConfig
public java.util.function.Function<java.lang.String,java.lang.Integer> isFunctionAllowed()
isFunctionAllowed
in interface ExpressionBuilderConfig
public void setAllowedFunctions(java.util.function.Function<java.lang.String,java.lang.Integer> allow)
setAllowedFunctions
in interface ExpressionBuilderConfig
public java.lang.String getSuggestion(Expression expression)
getSuggestion
in interface ExpressionBuilderConfig
public void addSuggestionFactory(Factory factory)
addSuggestionFactory
in interface ExpressionBuilderConfig
public void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable
public java.util.List<Element> getAddedElements()
getAddedElements
in interface ExpressionBuilderConfig
public ExpressionBuilderConfig cloneConfig()
cloneConfig
in interface ExpressionBuilderConfig
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.