Class SchemaEditorPreferences
java.lang.Object
com.illumon.iris.console.schemaeditor.SchemaEditorPreferences
- All Implemented Interfaces:
Workspace
public final class SchemaEditorPreferences extends Object implements Workspace
Persists preference settings for Schema Editor behavior. These are stored in the workspace.
Currently they include what
CasingStyle
to use for formatting column names,
and whether to use underscore or nothing as a replacement character for spaces and hyphens in the source
name.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SchemaEditorPreferences.Listener
-
Field Summary
-
Method Summary
Modifier and Type Method Description void
addListener(SchemaEditorPreferences.Listener l)
void
beginEdit()
void
endEdit()
CasingStyle
getCasingStyle()
static SchemaEditorPreferences
getInstance()
String
getReplacementChar()
String
getSchemaToolDbHost()
String
getSchemaToolExtraJvmArgs()
double
getSchemaToolHeap()
org.jdom2.Element
getWorkspaceInfo()
Serialize the class into an element to be stored in the workspaceboolean
isGlobalSetting()
void
removeListener(SchemaEditorPreferences.Listener l)
void
setCasingStyle(CasingStyle casingStyle)
void
setReplacementChar(String replacementChar)
void
setSchemaToolDbHost(String schemaToolDbHost)
void
setSchemaToolExtraJvmArgs(String schemaToolExtraJvmArgs)
void
setSchemaToolHeap(double schemaToolHeap)
void
setWorkspaceInfo(org.jdom2.Element workspaceInfo)
Restore the class to the state defined by the data persisted in workspaceInfo
-
Field Details
-
NODE_NAME
- See Also:
- Constant Field Values
-
-
Method Details
-
getInstance
-
getReplacementChar
-
setReplacementChar
-
getCasingStyle
-
setCasingStyle
-
getWorkspaceInfo
public org.jdom2.Element getWorkspaceInfo()Description copied from interface:Workspace
Serialize the class into an element to be stored in the workspace- Specified by:
getWorkspaceInfo
in interfaceWorkspace
- Returns:
- An
Element
containing the data to persist.
-
setWorkspaceInfo
public void setWorkspaceInfo(org.jdom2.Element workspaceInfo)Description copied from interface:Workspace
Restore the class to the state defined by the data persisted in workspaceInfo- Specified by:
setWorkspaceInfo
in interfaceWorkspace
- Parameters:
workspaceInfo
- AnElement
containing the persisted state.
-
getSchemaToolDbHost
-
setSchemaToolDbHost
-
getSchemaToolHeap
public double getSchemaToolHeap() -
setSchemaToolHeap
public void setSchemaToolHeap(double schemaToolHeap) -
getSchemaToolExtraJvmArgs
-
setSchemaToolExtraJvmArgs
-
isGlobalSetting
public boolean isGlobalSetting()- Specified by:
isGlobalSetting
in interfaceWorkspace
-
addListener
-
removeListener
-
beginEdit
public void beginEdit() -
endEdit
public void endEdit()
-