Package com.aoindustries.util.i18n
Class EditableResourceBundle.ThreadSettings
- java.lang.Object
-
- com.aoindustries.util.i18n.EditableResourceBundle.ThreadSettings
-
- Enclosing class:
- EditableResourceBundle
public static class EditableResourceBundle.ThreadSettings extends Object
Settings for the current thread. This object is copied during invocation of subtasks and therefore has a thread-safe implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEditableResourceBundle.ThreadSettings.Mode
-
Constructor Summary
Constructors Constructor Description ThreadSettings()Creates new settings in a disable state.ThreadSettings(String setValueUrl, EditableResourceBundle.ThreadSettings.Mode mode, boolean modifyAllText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditableResourceBundle.ThreadSettings.ModegetMode()booleangetModifyAllText()EditableResourceBundle.ThreadSettingssetMode(EditableResourceBundle.ThreadSettings.Mode mode)Sets the mode.EditableResourceBundle.ThreadSettingssetModifyAllText(boolean modifyAllText)Sets the modify all text flag.EditableResourceBundle.ThreadSettingssetSettings(EditableResourceBundle.ThreadSettings.Mode mode, boolean modifyAllText)Creates a new settings instance that shares the underlying sequences, map, and lookup context, but with a different configuration.
-
-
-
Constructor Detail
-
ThreadSettings
public ThreadSettings(String setValueUrl, EditableResourceBundle.ThreadSettings.Mode mode, boolean modifyAllText)
-
ThreadSettings
public ThreadSettings()
Creates new settings in a disable state.
-
-
Method Detail
-
setSettings
public EditableResourceBundle.ThreadSettings setSettings(EditableResourceBundle.ThreadSettings.Mode mode, boolean modifyAllText)
Creates a new settings instance that shares the underlying sequences, map, and lookup context, but with a different configuration.These new settings are not automatically associated with the current thread. That must be done via
EditableResourceBundle.setThreadSettings(com.aoindustries.util.i18n.EditableResourceBundle.ThreadSettings).- Returns:
- When configuration unchanged, returns
this, otherwise a new instance with shared underlying sequences, map, and lookup context.
-
getMode
public EditableResourceBundle.ThreadSettings.Mode getMode()
-
setMode
public EditableResourceBundle.ThreadSettings setMode(EditableResourceBundle.ThreadSettings.Mode mode)
Sets the mode.These new settings are not automatically associated with the current thread. That must be done via
EditableResourceBundle.setThreadSettings(com.aoindustries.util.i18n.EditableResourceBundle.ThreadSettings).- Returns:
- When configuration unchanged, returns
this, otherwise a new instance with shared underlying sequences, map, and lookup context. - See Also:
setSettings(com.aoindustries.util.i18n.EditableResourceBundle.ThreadSettings.Mode, boolean)
-
getModifyAllText
public boolean getModifyAllText()
-
setModifyAllText
public EditableResourceBundle.ThreadSettings setModifyAllText(boolean modifyAllText)
Sets the modify all text flag.These new settings are not automatically associated with the current thread. That must be done via
EditableResourceBundle.setThreadSettings(com.aoindustries.util.i18n.EditableResourceBundle.ThreadSettings).- Returns:
- When configuration unchanged, returns
this, otherwise a new instance with shared underlying sequences, map, and lookup context. - See Also:
setSettings(com.aoindustries.util.i18n.EditableResourceBundle.ThreadSettings.Mode, boolean)
-
-