public class TxRef extends Object
Element of Configuration
Sub-Elements are TxAntModeRef
, TxModeRef
Constructor and Description |
---|
TxRef() |
Modifier and Type | Method and Description |
---|---|
Serial |
getSerial()
Deprecated.
SSRF references are managed automatically. Use
getTransmitter() instead. |
Transmitter |
getTransmitter()
Get the serial of a Transmitter in this configuration.
|
Set<TxAntModeRef> |
getTxAntModeRef()
Get the TxAntModeRef
|
Set<TxModeRef> |
getTxModeRef()
Get the TxModeRef
|
boolean |
isSet()
Determine if the required fields in this SSRF data type instance are set.
|
boolean |
isSetSerial()
Determine if the Serial is configured.
|
boolean |
isSetTransmitter()
Determine if the transmitter field is configured.
|
boolean |
isSetTxAntModeRef()
Determine if the TxAntModeRef is configured.
|
boolean |
isSetTxModeRef()
Determine if the TxModeRef is configured.
|
void |
postLoad(SSRF root)
Update the SSRF data type references in this TxRef record after loading
from XML.
|
void |
prepare()
Update the SSRF data type references in this TxRef record.
|
void |
setSerial(Serial value)
Deprecated.
SSRF references are managed automatically. Use
#setTransmitter(Transmitter) instead. |
String |
toString()
Get a string representation of this TxRef instance configuration.
|
void |
unsetTxAntModeRef()
Clear the TxAntModeRef field.
|
void |
unsetTxModeRef()
Clear the TxModeRef field.
|
TxRef |
withSerial(Serial value)
Deprecated.
SSRF references are managed automatically. Use
withTransmitter(Transmitter) instead. |
TxRef |
withTransmitter(Transmitter value)
Set the serial of a Transmitter in this configuration.
|
TxRef |
withTxAntModeRef(Collection<TxAntModeRef> values)
Set the TxAntModeRef
|
TxRef |
withTxAntModeRef(TxAntModeRef... values)
Set the TxAntModeRef
|
TxRef |
withTxModeRef(Collection<TxModeRef> values)
Set the TxModeRef
|
TxRef |
withTxModeRef(TxModeRef... values)
Set the TxModeRef
|
@Deprecated public Serial getSerial()
getTransmitter()
instead.Serial
instance@Deprecated public void setSerial(Serial value)
#setTransmitter(Transmitter)
instead.value
- a Serial
instancepublic boolean isSetSerial()
public Set<TxModeRef> getTxModeRef()
Complex element TxModeRef contains references to the Transmitter and its modes, used to construct a Configuration..
TxModeRef
instancepublic boolean isSetTxModeRef()
public void unsetTxModeRef()
public Set<TxAntModeRef> getTxAntModeRef()
Complex element TxAntModeRef contains references to the Antenna and its AntMode, used to construct a Transmitter Configuration..
TxAntModeRef
instancepublic boolean isSetTxAntModeRef()
public void unsetTxAntModeRef()
@Deprecated public TxRef withSerial(Serial value)
withTransmitter(Transmitter)
instead.value
- An instances of type Serial
.public TxRef withTxModeRef(TxModeRef... values)
Complex element TxModeRef contains references to the Transmitter and its modes, used to construct a Configuration.
values
- One or more instances of type TxModeRef...
.public TxRef withTxModeRef(Collection<TxModeRef> values)
Complex element TxModeRef contains references to the Transmitter and its modes, used to construct a Configuration.
values
- A collection of TxModeRef
instancespublic TxRef withTxAntModeRef(TxAntModeRef... values)
Complex element TxAntModeRef contains references to the Antenna and its AntMode, used to construct a Transmitter Configuration.
values
- One or more instances of type TxAntModeRef...
.public TxRef withTxAntModeRef(Collection<TxAntModeRef> values)
Complex element TxAntModeRef contains references to the Antenna and its AntMode, used to construct a Transmitter Configuration.
values
- A collection of TxAntModeRef
instancespublic String toString()
public boolean isSet()
Note that this method only checks for the presence of required information; this method does not validate the information format.
public Transmitter getTransmitter()
Transmitter
data typepublic boolean isSetTransmitter()
public TxRef withTransmitter(Transmitter value)
value
- An instances of type Transmitter
.public void prepare()
This method builds the exported serial
field with values from the
transient transmitter
field. This method should typically be
called after the TxRef is configured and (optionally) before exporting an
SSRF message.
public void postLoad(SSRF root)
This method builds the transient transmitter
with values from the
imported serial
field. This method should typically be called
after the TxRef is imported from XML. * @param root the SSRF root instance.
Copyright © 2016 OpenSSRF.org. All rights reserved.