java.lang.Object | |
↳ | com.datalogic.device.configuration.Property<T> |
Known Direct Subclasses
BlobProperty,
BooleanProperty,
CharacterProperty,
EnumProperty<E extends Enum<E>>,
MultipleChoiceProperty,
NumericProperty,
TextProperty
|
Property
is the abstract class that represents a generic Property of type T.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor of Property.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Finds the corresponding Property matching the passed ID, in a list of Properties.
| |||||||||||
Gets the current value of the Property.
| |||||||||||
Gets the default value of the Property.
| |||||||||||
Gets the integer value of the unique identifier
PropertyID of the property. | |||||||||||
Gets the name of the unique identifier
PropertyID of the property. | |||||||||||
Returns whether a Property needs a device reboot to be applied or not.
| |||||||||||
Gets the type of the Property.
| |||||||||||
Returns whether a Property is read only or not.
| |||||||||||
Returns whether a Property is supported or not.
| |||||||||||
Loads the property with the current set values, through a PropertyGetter.
| |||||||||||
Loads and sync the current set values into all the Properties contained in the passed list.
| |||||||||||
Sets the value of the property, it is not applied to the device.
| |||||||||||
Resets to the default value the property.
| |||||||||||
Stores the Property value, applying them.
| |||||||||||
Stores and applies all the Properties and their current associated values.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructor of Property.
id | int a corresponding numeric ID.
|
---|
Finds the corresponding Property matching the passed ID, in a list of Properties.
list | The ArrayList containing all the Properties. |
---|---|
id | The int representing the ID that should be found. |
Gets the current value of the Property.
ConfigException | when the property is not supported, when exceptions are enabled through the ErrorManager singleton.
|
---|
Gets the default value of the Property. This method is meaningless if the property is get through the BarcodeManager interface.
Gets the integer value of the unique identifier PropertyID
of the property.
int
The PropertyID, as a number.
Gets the name of the unique identifier PropertyID
of the property.
Returns whether a Property needs a device reboot to be applied or not. This method is meaningless if the property is get through the BarcodeManager interface.
boolean
value representing whether the Property needs a device reboot to be applied or not.
Gets the type of the Property. This method is meaningless if the property is get through the BarcodeManager interface.
Returns whether a Property is read only or not. This method is meaningless if the property is get through the BarcodeManager interface.
boolean
value representing whether the Property is read only or not.
Returns whether a Property is supported or not.
boolean
value representing whether the Property is supported or not.
Loads the property with the current set values, through a PropertyGetter.
from | The PropertyGetter called to synchronize the current values. |
---|
int
SUCCESS
in case of success,
otherwise a possible error code, matching one of the ConfigException
error constants.ConfigException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
---|
Loads and sync the current set values into all the Properties contained in the passed list.
from | The PropertyGetter used to sync all the active values associated to the Properties. |
---|---|
list | The ArrayList containing the Properties to be loaded. |
int
SUCCESS
in case of success,
otherwise a possible error code, matching one of the ConfigException
error constants.ConfigException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
---|
Sets the value of the property, it is not applied to the device. To apply the value of the property to the device and make it persistent the method commit()
of ConfigurationManager
must be called.
value | The value to be set. |
---|
int
SUCCESS
in case of success
otherwise a possible error code, matching one of the ConfigException
error constants.
In case of error, when exceptions are enabled through the ErrorManager
singleton, an exception is thrown.ConfigException | ACCESS_VIOLATION_ERROR if the property is read-only. |
---|---|
ConfigException | SUPPORT_ERROR if the property is not supported. |
ConfigException | VALUE_ERROR if the value is not an allowed value, e.g: an out of range integer or char value or a profiled enumerated value.
|
Resets to the default value the property. To apply the value of the property to the device and make it persistent the method commit()
of ConfigurationManager
must be called.
int
SUCCESS
in case of success
otherwise a possible error code, matching one of the ConfigException
error constants.ConfigException | ACCESS_VIOLATION_ERROR if the property is read-only. |
---|---|
ConfigException | SUPPORT_ERROR if the property is not supported.
|
Stores the Property value, applying them. The change is not persistent across system reboot. See the BarcodeManager
persistance note
.
to | The PropertyEditor in charge of applying the desired values. |
---|
int
SUCCESS
in case of success,
otherwise a possible error code, matching one of the ConfigException
error constants.ConfigException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
---|
Stores and applies all the Properties and their current associated values. The change is not persistent across system reboot. See the BarcodeManager
persistance note
.
to | The PropertyEditor used to store all the values. |
---|---|
list | The ArrayList containing the Properties. |
int
SUCCESS
in case of success,
otherwise a possible error code, matching one of the ConfigException
error constants.ConfigException | in case of error, when exceptions are enabled through the ErrorManager singleton.
|
---|