Package gnu.io.rfc2217
Class AbstractComPortCommandSwitch
- java.lang.Object
-
- gnu.io.rfc2217.AbstractComPortCommandSwitch
-
- All Implemented Interfaces:
ComPortCommandSwitch
public class AbstractComPortCommandSwitch extends java.lang.Object implements ComPortCommandSwitch
Adapter class forComPortCommandSwitchimplementations.
-
-
Constructor Summary
Constructors Constructor Description AbstractComPortCommandSwitch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcaseBaudRate(BaudRateCommand command)Visit method invoked byBaudRateCommandinstances.voidcaseControl(ControlCommand command)Visit method invoked byControlCommandinstances.voidcaseDataSize(DataSizeCommand command)Visit method invoked byDataSizeCommandinstances.protected voidcaseDefault(ComPortCommand command)Default handler.voidcaseFlowControlResume(FlowControlResumeCommand command)Visit method invoked byFlowControlResumeCommandinstances.voidcaseFlowControlSuspend(FlowControlSuspendCommand command)Visit method invoked byFlowControlSuspendCommandinstances.voidcaseLineStateMask(LineStateMaskCommand command)Visit method invoked byLineStateMaskCommandinstances.voidcaseModemStateMask(ModemStateMaskCommand command)Visit method invoked byModemStateMaskCommandinstances.voidcaseNotifyLineState(NotifyLineStateCommand command)Visit method invoked byNotifyLineStateCommandinstances.voidcaseNotifyModemState(NotifyModemStateCommand command)Visit method invoked byNotifyModemStateCommandinstances.voidcaseParity(ParityCommand command)Visit method invoked byParityCommandinstances.voidcasePurgeData(PurgeDataCommand command)Visit method invoked byPurgeDataCommandinstances.voidcaseSignature(SignatureCommand command)Visit method invoked bySignatureCommandinstances.voidcaseStopSize(StopSizeCommand command)Visit method invoked byStopSizeCommandinstances.
-
-
-
Method Detail
-
caseSignature
public void caseSignature(SignatureCommand command)
Visit method invoked bySignatureCommandinstances. The implementation inAbstractComPortCommandSwitchdelegates tocaseDefault(gnu.io.rfc2217.ComPortCommand).- Specified by:
caseSignaturein interfaceComPortCommandSwitch
-
caseBaudRate
public void caseBaudRate(BaudRateCommand command)
Visit method invoked byBaudRateCommandinstances. The implementation inAbstractComPortCommandSwitchdelegates tocaseDefault(gnu.io.rfc2217.ComPortCommand).- Specified by:
caseBaudRatein interfaceComPortCommandSwitch
-
caseDataSize
public void caseDataSize(DataSizeCommand command)
Visit method invoked byDataSizeCommandinstances. The implementation inAbstractComPortCommandSwitchdelegates tocaseDefault(gnu.io.rfc2217.ComPortCommand).- Specified by:
caseDataSizein interfaceComPortCommandSwitch
-
caseParity
public void caseParity(ParityCommand command)
Visit method invoked byParityCommandinstances. The implementation inAbstractComPortCommandSwitchdelegates tocaseDefault(gnu.io.rfc2217.ComPortCommand).- Specified by:
caseParityin interfaceComPortCommandSwitch
-
caseStopSize
public void caseStopSize(StopSizeCommand command)
Visit method invoked byStopSizeCommandinstances. The implementation inAbstractComPortCommandSwitchdelegates tocaseDefault(gnu.io.rfc2217.ComPortCommand).- Specified by:
caseStopSizein interfaceComPortCommandSwitch
-
caseControl
public void caseControl(ControlCommand command)
Visit method invoked byControlCommandinstances. The implementation inAbstractComPortCommandSwitchdelegates tocaseDefault(gnu.io.rfc2217.ComPortCommand).- Specified by:
caseControlin interfaceComPortCommandSwitch
-
caseNotifyLineState
public void caseNotifyLineState(NotifyLineStateCommand command)
Visit method invoked byNotifyLineStateCommandinstances. The implementation inAbstractComPortCommandSwitchdelegates tocaseDefault(gnu.io.rfc2217.ComPortCommand).- Specified by:
caseNotifyLineStatein interfaceComPortCommandSwitch
-
caseNotifyModemState
public void caseNotifyModemState(NotifyModemStateCommand command)
Visit method invoked byNotifyModemStateCommandinstances. The implementation inAbstractComPortCommandSwitchdelegates tocaseDefault(gnu.io.rfc2217.ComPortCommand).- Specified by:
caseNotifyModemStatein interfaceComPortCommandSwitch
-
caseFlowControlSuspend
public void caseFlowControlSuspend(FlowControlSuspendCommand command)
Visit method invoked byFlowControlSuspendCommandinstances. The implementation inAbstractComPortCommandSwitchdelegates tocaseDefault(gnu.io.rfc2217.ComPortCommand).- Specified by:
caseFlowControlSuspendin interfaceComPortCommandSwitch
-
caseFlowControlResume
public void caseFlowControlResume(FlowControlResumeCommand command)
Visit method invoked byFlowControlResumeCommandinstances. The implementation inAbstractComPortCommandSwitchdelegates tocaseDefault(gnu.io.rfc2217.ComPortCommand).- Specified by:
caseFlowControlResumein interfaceComPortCommandSwitch
-
caseLineStateMask
public void caseLineStateMask(LineStateMaskCommand command)
Visit method invoked byLineStateMaskCommandinstances. The implementation inAbstractComPortCommandSwitchdelegates tocaseDefault(gnu.io.rfc2217.ComPortCommand).- Specified by:
caseLineStateMaskin interfaceComPortCommandSwitch
-
caseModemStateMask
public void caseModemStateMask(ModemStateMaskCommand command)
Visit method invoked byModemStateMaskCommandinstances. The implementation inAbstractComPortCommandSwitchdelegates tocaseDefault(gnu.io.rfc2217.ComPortCommand).- Specified by:
caseModemStateMaskin interfaceComPortCommandSwitch
-
casePurgeData
public void casePurgeData(PurgeDataCommand command)
Visit method invoked byPurgeDataCommandinstances. The implementation inAbstractComPortCommandSwitchdelegates tocaseDefault(gnu.io.rfc2217.ComPortCommand).- Specified by:
casePurgeDatain interfaceComPortCommandSwitch
-
caseDefault
protected void caseDefault(ComPortCommand command)
Default handler. All other methods inAbstractComPortCommandSwitchdelegate to this method; the implementation inAbstractComPortCommandSwitchdoes nothing.
-
-