BEAST
eu.baltrad.beast.admin.command.SettingCommand Class Reference
Inheritance diagram for eu.baltrad.beast.admin.command.SettingCommand:
eu.baltrad.beast.admin.Command

Public Member Functions

 SettingCommand ()
 Default constructor.
 
 SettingCommand (String operation)
 Constructor.
 
 SettingCommand (String operation, Settings settings)
 Constructor.
 
String getOperation ()
 
boolean validate ()
 
void setOperation (String operation)
 
void setSettings (Settings settings)
 Sets a full map.
 
Settings getSettings ()
 Sets a full map.
 
boolean hasSetting (String name)
 Return if setting exists or not.
 
String getSetting (String name)
 Returns the setting.
 
String getSetting (String name, String defaultValue)
 Return the setting or default value.
 
- Public Member Functions inherited from eu.baltrad.beast.admin.Command
void setRawMessage (String s)
 Sets the RAW message used to populate the command.
 
String getRawMessage ()
 

Static Public Attributes

static final String UPDATE_SETTINGS = "update_settings"
 
static final String LIST = "list_settings"
 
static final String IMPORT = "import_settings"
 
static final String EXPORT = "export_settings"
 

Detailed Description

Author
anders

Constructor & Destructor Documentation

◆ SettingCommand() [1/3]

eu.baltrad.beast.admin.command.SettingCommand.SettingCommand ( )
inline

Default constructor.

◆ SettingCommand() [2/3]

eu.baltrad.beast.admin.command.SettingCommand.SettingCommand ( String operation)
inline

Constructor.

◆ SettingCommand() [3/3]

eu.baltrad.beast.admin.command.SettingCommand.SettingCommand ( String operation,
Settings settings )
inline

Constructor.

Member Function Documentation

◆ getOperation()

String eu.baltrad.beast.admin.command.SettingCommand.getOperation ( )
inline

◆ getSetting() [1/2]

String eu.baltrad.beast.admin.command.SettingCommand.getSetting ( String name)
inline

Returns the setting.

Parameters
namethe name of the setting
Returns
the value

◆ getSetting() [2/2]

String eu.baltrad.beast.admin.command.SettingCommand.getSetting ( String name,
String defaultValue )
inline

Return the setting or default value.

Parameters
namethe name of the setting
defaultValuethe value to return if no matching setting found
Returns
the value

◆ getSettings()

Settings eu.baltrad.beast.admin.command.SettingCommand.getSettings ( )
inline

Sets a full map.

Parameters
mapthe map to set

◆ hasSetting()

boolean eu.baltrad.beast.admin.command.SettingCommand.hasSetting ( String name)
inline

Return if setting exists or not.

Parameters
nameof setting
Returns
true if setting exists

◆ setOperation()

void eu.baltrad.beast.admin.command.SettingCommand.setOperation ( String operation)
inline
Parameters
operationthe operation to set

◆ setSettings()

void eu.baltrad.beast.admin.command.SettingCommand.setSettings ( Settings settings)
inline

Sets a full map.

Parameters
mapthe map to set

◆ validate()

boolean eu.baltrad.beast.admin.command.SettingCommand.validate ( )
inline

The documentation for this class was generated from the following file: