public static final class ParallelTypes.BackingInfo.Builder
extends java.lang.Object
ParallelTypes.BackingInfo
.Constructor and Description |
---|
ParallelTypes.BackingInfo.Builder(ParallelTypes.BackingType type)
Constructor with parameters for the required properties of
ParallelTypes.BackingInfo . |
Modifier and Type | Method and Description |
---|---|
ParallelTypes.BackingInfo |
build() |
ParallelTypes.BackingInfo.Builder |
setAutoDetect(java.lang.Boolean autoDetect)
Flag indicating whether the virtual parallel port is configured to automatically
detect a suitable host device.
|
ParallelTypes.BackingInfo.Builder |
setFile(java.lang.String file)
Path of the file backing the virtual parallel port.
|
ParallelTypes.BackingInfo.Builder |
setHostDevice(java.lang.String hostDevice)
Name of the device backing the virtual parallel port.
|
public ParallelTypes.BackingInfo.Builder(ParallelTypes.BackingType type)
ParallelTypes.BackingInfo
.public ParallelTypes.BackingInfo.Builder setFile(java.lang.String file)
getType()
is ParallelTypes.BackingType.FILE
.file
- New value for the property.public ParallelTypes.BackingInfo.Builder setHostDevice(java.lang.String hostDevice)
null
if getAutoDetect()
is true and the
virtual parallel port is not connected or no suitable device is available on the
host.hostDevice
- New value for the property.public ParallelTypes.BackingInfo.Builder setAutoDetect(java.lang.Boolean autoDetect)
getType()
is ParallelTypes.BackingType.HOST_DEVICE
.autoDetect
- New value for the property.public ParallelTypes.BackingInfo build()