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, waitcloneQuietly, cloneQuietlypublic DefaultExpressionBuilderConfig(ExpressionEvaluatorSwingManager manager)
public ExpressionBuilderConfig.Preferences getPreferences()
getPreferences in interface ExpressionBuilderConfigpublic java.util.Collection<Factory> getSuggestionFactories()
getSuggestionFactories in interface ExpressionBuilderConfigpublic java.util.function.Function<java.lang.String,java.lang.Integer> getAllowedFunctions()
getAllowedFunctions in interface ExpressionBuilderConfigpublic java.util.List<Element> getElements()
getElements in interface ExpressionBuilderConfigpublic void addElement(Element element)
addElement in interface ExpressionBuilderConfigpublic void removeElement(java.lang.String elementName)
removeElement in interface ExpressionBuilderConfigpublic java.util.Collection<SymbolTable> getSymbolTables()
getSymbolTables in interface ExpressionBuilderConfigpublic void addSymbolTable(java.lang.String name)
addSymbolTable in interface ExpressionBuilderConfigpublic void addSymbolTable(SymbolTable symbolTable)
addSymbolTable in interface ExpressionBuilderConfigpublic void removeAllSymbolTables()
removeAllSymbolTables in interface ExpressionBuilderConfigpublic void removeAllElements()
removeAllElements in interface ExpressionBuilderConfigpublic void removeAddedElements()
removeAddedElements in interface ExpressionBuilderConfigpublic int getSimpleElementsLimit()
ExpressionBuilderConfig.PreferencesgetSimpleElementsLimit in interface ExpressionBuilderConfig.Preferencespublic void setSimpleElementsLimit(int limit)
ExpressionBuilderConfig.PreferencessetSimpleElementsLimit in interface ExpressionBuilderConfig.Preferencespublic void removeSymbolTable(java.lang.String name)
removeSymbolTable in interface ExpressionBuilderConfigpublic SymbolTable getPreviewSymbolTable()
getPreviewSymbolTable in interface ExpressionBuilderConfigpublic void setPreviewSymbolTable(SymbolTable symbolTable)
setPreviewSymbolTable in interface ExpressionBuilderConfigpublic void addPreviewSymbolTable(SymbolTable symbolTable)
addPreviewSymbolTable in interface ExpressionBuilderConfigpublic void setSQLCompatible(boolean SQLCompatible)
setSQLCompatible in interface ExpressionBuilderConfig.Preferencespublic boolean isSQLCompatible()
isSQLCompatible in interface ExpressionBuilderConfig.Preferencespublic java.lang.Object getProperty(java.lang.String string)
getProperty in interface PropertiesSupportpublic void setProperty(java.lang.String string,
java.lang.Object o)
setProperty in interface PropertiesSupportpublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in interface PropertiesSupportpublic boolean getShowLabelsOfElements()
getShowLabelsOfElements in interface ExpressionBuilderConfig.Preferencespublic void setShowLabelsOfElements(boolean showLabels)
setShowLabelsOfElements in interface ExpressionBuilderConfig.Preferencespublic boolean allowAggregates()
allowAggregates in interface ExpressionBuilderConfigpublic boolean allowAggregates(boolean allow)
allowAggregates in interface ExpressionBuilderConfigpublic java.util.function.Function<java.lang.String,java.lang.Integer> isFunctionAllowed()
isFunctionAllowed in interface ExpressionBuilderConfigpublic void setAllowedFunctions(java.util.function.Function<java.lang.String,java.lang.Integer> allow)
setAllowedFunctions in interface ExpressionBuilderConfigpublic java.lang.String getSuggestion(Expression expression)
getSuggestion in interface ExpressionBuilderConfigpublic void addSuggestionFactory(Factory factory)
addSuggestionFactory in interface ExpressionBuilderConfigpublic void dispose()
DisposableNOTE:After calling this method, the object may not be usable anymore.
dispose in interface Disposablepublic java.util.List<Element> getAddedElements()
getAddedElements in interface ExpressionBuilderConfigpublic ExpressionBuilderConfig cloneConfig()
cloneConfig in interface ExpressionBuilderConfigpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Cloneableclone in class java.lang.Objectjava.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()}.