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 forComPortCommandSwitch
implementations.
-
-
Constructor Summary
Constructors Constructor Description AbstractComPortCommandSwitch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
caseBaudRate(BaudRateCommand command)
Visit method invoked byBaudRateCommand
instances.void
caseControl(ControlCommand command)
Visit method invoked byControlCommand
instances.void
caseDataSize(DataSizeCommand command)
Visit method invoked byDataSizeCommand
instances.protected void
caseDefault(ComPortCommand command)
Default handler.void
caseFlowControlResume(FlowControlResumeCommand command)
Visit method invoked byFlowControlResumeCommand
instances.void
caseFlowControlSuspend(FlowControlSuspendCommand command)
Visit method invoked byFlowControlSuspendCommand
instances.void
caseLineStateMask(LineStateMaskCommand command)
Visit method invoked byLineStateMaskCommand
instances.void
caseModemStateMask(ModemStateMaskCommand command)
Visit method invoked byModemStateMaskCommand
instances.void
caseNotifyLineState(NotifyLineStateCommand command)
Visit method invoked byNotifyLineStateCommand
instances.void
caseNotifyModemState(NotifyModemStateCommand command)
Visit method invoked byNotifyModemStateCommand
instances.void
caseParity(ParityCommand command)
Visit method invoked byParityCommand
instances.void
casePurgeData(PurgeDataCommand command)
Visit method invoked byPurgeDataCommand
instances.void
caseSignature(SignatureCommand command)
Visit method invoked bySignatureCommand
instances.void
caseStopSize(StopSizeCommand command)
Visit method invoked byStopSizeCommand
instances.
-
-
-
Method Detail
-
caseSignature
public void caseSignature(SignatureCommand command)
Visit method invoked bySignatureCommand
instances. The implementation inAbstractComPortCommandSwitch
delegates tocaseDefault(gnu.io.rfc2217.ComPortCommand)
.- Specified by:
caseSignature
in interfaceComPortCommandSwitch
-
caseBaudRate
public void caseBaudRate(BaudRateCommand command)
Visit method invoked byBaudRateCommand
instances. The implementation inAbstractComPortCommandSwitch
delegates tocaseDefault(gnu.io.rfc2217.ComPortCommand)
.- Specified by:
caseBaudRate
in interfaceComPortCommandSwitch
-
caseDataSize
public void caseDataSize(DataSizeCommand command)
Visit method invoked byDataSizeCommand
instances. The implementation inAbstractComPortCommandSwitch
delegates tocaseDefault(gnu.io.rfc2217.ComPortCommand)
.- Specified by:
caseDataSize
in interfaceComPortCommandSwitch
-
caseParity
public void caseParity(ParityCommand command)
Visit method invoked byParityCommand
instances. The implementation inAbstractComPortCommandSwitch
delegates tocaseDefault(gnu.io.rfc2217.ComPortCommand)
.- Specified by:
caseParity
in interfaceComPortCommandSwitch
-
caseStopSize
public void caseStopSize(StopSizeCommand command)
Visit method invoked byStopSizeCommand
instances. The implementation inAbstractComPortCommandSwitch
delegates tocaseDefault(gnu.io.rfc2217.ComPortCommand)
.- Specified by:
caseStopSize
in interfaceComPortCommandSwitch
-
caseControl
public void caseControl(ControlCommand command)
Visit method invoked byControlCommand
instances. The implementation inAbstractComPortCommandSwitch
delegates tocaseDefault(gnu.io.rfc2217.ComPortCommand)
.- Specified by:
caseControl
in interfaceComPortCommandSwitch
-
caseNotifyLineState
public void caseNotifyLineState(NotifyLineStateCommand command)
Visit method invoked byNotifyLineStateCommand
instances. The implementation inAbstractComPortCommandSwitch
delegates tocaseDefault(gnu.io.rfc2217.ComPortCommand)
.- Specified by:
caseNotifyLineState
in interfaceComPortCommandSwitch
-
caseNotifyModemState
public void caseNotifyModemState(NotifyModemStateCommand command)
Visit method invoked byNotifyModemStateCommand
instances. The implementation inAbstractComPortCommandSwitch
delegates tocaseDefault(gnu.io.rfc2217.ComPortCommand)
.- Specified by:
caseNotifyModemState
in interfaceComPortCommandSwitch
-
caseFlowControlSuspend
public void caseFlowControlSuspend(FlowControlSuspendCommand command)
Visit method invoked byFlowControlSuspendCommand
instances. The implementation inAbstractComPortCommandSwitch
delegates tocaseDefault(gnu.io.rfc2217.ComPortCommand)
.- Specified by:
caseFlowControlSuspend
in interfaceComPortCommandSwitch
-
caseFlowControlResume
public void caseFlowControlResume(FlowControlResumeCommand command)
Visit method invoked byFlowControlResumeCommand
instances. The implementation inAbstractComPortCommandSwitch
delegates tocaseDefault(gnu.io.rfc2217.ComPortCommand)
.- Specified by:
caseFlowControlResume
in interfaceComPortCommandSwitch
-
caseLineStateMask
public void caseLineStateMask(LineStateMaskCommand command)
Visit method invoked byLineStateMaskCommand
instances. The implementation inAbstractComPortCommandSwitch
delegates tocaseDefault(gnu.io.rfc2217.ComPortCommand)
.- Specified by:
caseLineStateMask
in interfaceComPortCommandSwitch
-
caseModemStateMask
public void caseModemStateMask(ModemStateMaskCommand command)
Visit method invoked byModemStateMaskCommand
instances. The implementation inAbstractComPortCommandSwitch
delegates tocaseDefault(gnu.io.rfc2217.ComPortCommand)
.- Specified by:
caseModemStateMask
in interfaceComPortCommandSwitch
-
casePurgeData
public void casePurgeData(PurgeDataCommand command)
Visit method invoked byPurgeDataCommand
instances. The implementation inAbstractComPortCommandSwitch
delegates tocaseDefault(gnu.io.rfc2217.ComPortCommand)
.- Specified by:
casePurgeData
in interfaceComPortCommandSwitch
-
caseDefault
protected void caseDefault(ComPortCommand command)
Default handler. All other methods inAbstractComPortCommandSwitch
delegate to this method; the implementation inAbstractComPortCommandSwitch
does nothing.
-
-