public class Assets extends Object
Element of ForceElement
Example:
<Assets> <Serial cls="U">USA:AF:FE:123</Serial> <Authorised cls="U">10</Authorised> <Available cls="U">5</Available> </Assets>
Constructor and Description |
---|
Assets() |
Modifier and Type | Method and Description |
---|---|
Common<?> |
getAsset()
Get a reference to a Transmitter, Receiver, Antenna, RFSystem used by this
ForceElement, or to a ForceElement carried by or belonging to this
ForceElement..
|
UN9 |
getAuthorised()
Get the authorised quantity of the referenced equipment or system..
|
UN9 |
getAvailable()
Get the available quantity of the referenced equipment or system..
|
Serial |
getSerial()
Deprecated.
SSRF references are managed automatically. Use
getAsset() instead. |
boolean |
isSet()
Determine if the required fields in this SSRF data type instance are set.
|
boolean |
isSetAsset()
Determine if the asset field is configured.
|
boolean |
isSetAuthorised()
Determine if the Authorised is configured.
|
boolean |
isSetAvailable()
Determine if the Available is configured.
|
boolean |
isSetSerial()
Determine if the Serial is configured.
|
void |
postLoad(SSRF root)
Update the SSRF data type references in this Assets record after loading
from XML.
|
void |
prepare()
Update the SSRF data type references in this Assets record.
|
void |
setAuthorised(UN9 value)
Set the authorised quantity of the referenced equipment or system..
|
void |
setAvailable(UN9 value)
Set the available quantity of the referenced equipment or system..
|
void |
setSerial(Serial value)
Deprecated.
SSRF references are managed automatically. Use
#setAsset(Common) instead. |
String |
toString()
Get a string representation of this Assets instance configuration.
|
Assets |
withAsset(Common<?> value)
Set a reference to a Transmitter, Receiver, Antenna, RFSystem used by this
ForceElement, or to a ForceElement carried by or belonging to this
ForceElement.
|
Assets |
withAuthorised(Integer value)
Set the authorised quantity of the referenced equipment or system.
|
Assets |
withAvailable(Integer value)
Set the available quantity of the referenced equipment or system.
|
Assets |
withSerial(Serial value)
Deprecated.
SSRF references are managed automatically. Use
withAsset(Common) instead. |
@Deprecated public Serial getSerial()
getAsset()
instead.Serial
instance@Deprecated public void setSerial(Serial value)
#setAsset(Common)
instead.value
- a Serial
instancepublic boolean isSetSerial()
public UN9 getAuthorised()
UN9
instancepublic void setAuthorised(UN9 value)
value
- a UN9
instancepublic boolean isSetAuthorised()
public UN9 getAvailable()
UN9
instancepublic void setAvailable(UN9 value)
value
- a UN9
instancepublic boolean isSetAvailable()
@Deprecated public Assets withSerial(Serial value)
withAsset(Common)
instead.value
- An instances of type Serial
.public Assets withAuthorised(Integer value)
value
- An instances of type Integer
.public Assets withAvailable(Integer value)
value
- An instances of type Integer
.public 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 Common<?> getAsset()
Common
instancepublic boolean isSetAsset()
public Assets withAsset(Common<?> value)
value
- An instances of type Common>
.public void prepare()
This method builds the exported serial
field with values from the
transient asset
field. This method should typically be called
after the Assets is configured and (optionally) before exporting an SSRF
message.
public void postLoad(SSRF root)
This method builds the transient asset
with values from the
imported serial
field. This method should typically be called
after the Assets is imported from XML. * @param root the SSRF root
instance.
Copyright © 2016 OpenSSRF.org. All rights reserved.