Package com.zebra.sdk.settings
Class Setting
Object
com.zebra.sdk.settings.Setting
- All Implemented Interfaces:
Serializable
A class that represents an internal device setting.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a string that describes the access permissions for the setting.booleanReturn true if this setting can be applied when loading a backup.booleangetClone()Returns true if this setting can be applied when loading a profile.getRange()Returns a string that describes the acceptable range of values for this setting.getType()Returns a string describing the data type of the setting.getValue()Returns the setting's value.booleanReturns true if the setting does not have write access.booleanReturns true ifvalueis valid for the given setting.booleanReturns true if the setting does not have read access.voidSet the access permissions for this setting.voidsetArchive(boolean archive) Set to true if this setting should be applied when loading a backup.voidsetClone(boolean clone) Set to true if this setting should be applied when loading a profile.voidTakes a string that describes the acceptable range of values for this setting.voidSet the setting's data type.voidSet the setting's value.toString()Returns the Setting data including the value, type, and range for the setting.
-
Constructor Details
-
Setting
public Setting()Instantiates the Setting class
-
-
Method Details
-
getRange
Returns a string that describes the acceptable range of values for this setting.- Returns:
- a string that describes the acceptable range of values for this setting
-
setRange
Takes a string that describes the acceptable range of values for this setting.- Parameters:
range- a string that describes the acceptable range of values for this setting
-
isValid
Returns true ifvalueis valid for the given setting.- Parameters:
value- setting value.- Returns:
- true if value is within the setting's range
-
getClone
public boolean getClone()Returns true if this setting can be applied when loading a profile.- Returns:
- true if this setting can be applied when loading a profile
-
setClone
public void setClone(boolean clone) Set to true if this setting should be applied when loading a profile.- Parameters:
clone- set to true if this setting should be applied when loading a profile
-
getArchive
public boolean getArchive()Return true if this setting can be applied when loading a backup.- Returns:
- true if this setting can be applied when loading a backup
-
setArchive
public void setArchive(boolean archive) Set to true if this setting should be applied when loading a backup.- Parameters:
archive- set to true if this setting should be applied when loading a backup
-
getAccess
Returns a string that describes the access permissions for the setting. RW is returned for settings that have read and write permissions. R is returned for settings that are read-only W is returned for settings that are write-only- Returns:
- a string that describes the access permissions for the setting
-
setAccess
Set the access permissions for this setting. RW is returned for settings that have read and write permissions. R is returned for settings that are read-only W is returned for settings that are write-only- Parameters:
access- the access permissions for this setting
-
getType
Returns a string describing the data type of the setting.- Returns:
- the setting's data type
-
setType
Set the setting's data type.- Parameters:
type- a string describing the data type of the setting
-
getValue
Returns the setting's value.- Returns:
- the setting's value
-
setValue
Set the setting's value.- Parameters:
newValue- the settings value
-
isReadOnly
public boolean isReadOnly()Returns true if the setting does not have write access.- Returns:
- true if the setting does not have write access
-
isWriteOnly
public boolean isWriteOnly()Returns true if the setting does not have read access.- Returns:
- true if the setting does not have read access
-
toString
Returns the Setting data including the value, type, and range for the setting.
-