Class ScannerProperties
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.scanner.ScannerProperties
- All Implemented Interfaces:
JposBaseInterface,ScannerInterface
- Direct Known Subclasses:
Scanner
Class containing the scanner specific properties, their default values and default implementations of
ScannerInterface.
For details about properties, methods and method parameters, see UPOS specification, chapter Scanner (Bar Code
Reader).
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanUPOS property DecodeData.byte[]UPOS property ScanData.byte[]Default value of ScanData property.byte[]UPOS property ScanDataLabel.intUPOS property ScanDataType.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
AllowAlwaysSetProperties, AllowDeprecatedMethods, AsyncInputActive, AsyncMode, AutoDisable, CapStatisticsReporting, CapUpdateStatistics, CheckHealthText, Claimed, Claiming, ClaimWaiters, CurrentCommands, CurrentUnitID, DataCount, DataEventEnabled, DataEventList, Device, DeviceEnabled, DeviceServiceDescription, DeviceServiceVersion, DevProps, ErrorString, ErrorUnits, EventCB, EventList, EventSource, EventString, EventUnitID, EventUnits, ExclusiveAllowed, ExclusiveNo, ExclusiveUse, ExclusiveYes, FirstEnableHappened, FlagWhenIdle, FlagWhenIdleStatusValue, FreezeEvents, Index, LogicalName, MaximumConfirmationEventWaitingTime, OutputID, PowerNotify, PowerState, SerializedRequestRunner, SerializedRequests, State, StrictFIFOEventHandling, SuspendedCommands, SuspendedConcurrentCommands, UnitsOnline, UsesSubsystemUnits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear data properties.voiddecodeData(boolean flag)Final part of setting DecodeData.voidInitialization of properties that must be initialized during open.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
addProperties, asyncMode, attachWaiter, autoDisable, checkForDeprecation, checkHealth, checkProperties, claim, clearErrorProperties, clearInput, clearOutput, clearOutputErrorProperties, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, getClaimingInstance, handlePowerStateOnEnable, initOnClaim, initOnEnable, initOnFirstEnable, newJposOutputRequest, open, powerNotify, release, releaseWaiter, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, signalWaiter, unitDataCount, updateFirmware, updateFirmware, updateStatistics, waitWaiterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, clearInput, clearOutput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, newJposOutputRequest, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Field Details
-
ScanDataDef
public byte[] ScanDataDefDefault value of ScanData property. Default: Zero-length byte array. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
DecodeData
public boolean DecodeDataUPOS property DecodeData. -
ScanData
public byte[] ScanDataUPOS property ScanData. -
ScanDataLabel
public byte[] ScanDataLabelUPOS property ScanDataLabel. -
ScanDataType
public int ScanDataTypeUPOS property ScanDataType.
-
-
Constructor Details
-
ScannerProperties
public ScannerProperties(int dev)Constructor. Sets ExclusiveUse to ExclusiveYes to match the ScannerInterface device model.- Parameters:
dev- Device index
-
-
Method Details
-
initOnOpen
public void initOnOpen()Description copied from class:JposCommonPropertiesInitialization of properties that must be initialized during open.- Overrides:
initOnOpenin classJposCommonProperties
-
clearDataProperties
public void clearDataProperties()Description copied from class:JposCommonPropertiesClear data properties. Performed during ClearInput and ClearInputProperties.- Overrides:
clearDataPropertiesin classJposCommonProperties
-
decodeData
public void decodeData(boolean flag) throws jpos.JposExceptionDescription copied from interface:ScannerInterfaceFinal part of setting DecodeData. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device has not been closed,
- internal property AllowAlwaysSetProperties is true or flag equals the previous value of DecodeData.
- Specified by:
decodeDatain interfaceScannerInterface- Parameters:
flag- New DecodeData value- Throws:
jpos.JposException- If an error occurs
-