public class Dataset extends Object
Element of Administrative
Sub-Element is
Constructor and Description |
---|
Dataset() |
Modifier and Type | Method and Description |
---|---|
Set<Common<?>> |
getMissing()
Get the MissingRef
|
Set<Serial> |
getMissingRef()
Deprecated.
SSRF references are managed automatically. Use
getMissing() instead. |
MEMO |
getReason()
Get the reason linked to the Action performed on this dataset..
|
D |
getRetireDate()
Get the date this Dataset goes out of force..
|
Serial |
getSerial()
Get the serial of the referenced Dataset..
|
boolean |
isSet()
Determine if the required fields in this SSRF data type instance are set.
|
boolean |
isSetMissing()
Determine if the missing field is configured.
|
boolean |
isSetMissingRef()
Determine if the MissingRef is configured.
|
boolean |
isSetReason()
Determine if the Reason is configured.
|
boolean |
isSetRetireDate()
Determine if the RetireDate is configured.
|
boolean |
isSetSerial()
Determine if the Serial is configured.
|
void |
postLoad(SSRF root)
Update the SSRF data type references in this Dataset record after loading
from XML.
|
void |
prepare()
Update the SSRF data type references in this Dataset record.
|
void |
setReason(MEMO value)
Set the reason linked to the Action performed on this dataset..
|
void |
setRetireDate(D value)
Set the date this Dataset goes out of force..
|
void |
setSerial(Serial value)
Set the serial of the referenced Dataset..
|
String |
toString()
Get a string representation of this Dataset instance configuration.
|
void |
unsetMissingRef()
Clear the MissingRef field.
|
Dataset |
withMissing(Collection<Common<?>> values)
Set the MissingRef
|
Dataset |
withMissing(Common<?>... values)
Set the MissingRef
|
Dataset |
withMissingRef(Collection<Serial> values)
Deprecated.
SSRF references are managed automatically. Use
withMissing(Common...) instead. |
Dataset |
withMissingRef(Serial... values)
Deprecated.
SSRF references are managed automatically. Use
withMissing(Common...) instead. |
Dataset |
withReason(String value)
Set the reason linked to the Action performed on this dataset.
|
Dataset |
withRetireDate(Calendar value)
Set the date this Dataset goes out of force.
|
Dataset |
withRetireDate(Date value)
Set the date this Dataset goes out of force.
|
Dataset |
withSerial(Serial value)
Set the serial of the referenced Dataset.
|
public Serial getSerial()
Serial
instancepublic void setSerial(Serial value)
value
- a Serial
instancepublic boolean isSetSerial()
public D getRetireDate()
D
instancepublic void setRetireDate(D value)
value
- a D
instancepublic boolean isSetRetireDate()
public MEMO getReason()
MEMO
instancepublic void setReason(MEMO value)
value
- a MEMO
instancepublic boolean isSetReason()
@Deprecated public Set<Serial> getMissingRef()
getMissing()
instead.Complex element MissingRef allows the recipient of a message to signal the sender that a dataset referenced in the message was not known by the recipient..
Serial
instancepublic boolean isSetMissingRef()
public void unsetMissingRef()
public Dataset withSerial(Serial value)
value
- An instances of type Serial
.public Dataset withRetireDate(Calendar value)
value
- An instances of type Calendar
.public Dataset withRetireDate(Date value)
value
- An instances of type Date
.public Dataset withReason(String value)
value
- An instances of type String
.@Deprecated public Dataset withMissingRef(Serial... values)
withMissing(Common...)
instead.Complex element MissingRef allows the recipient of a message to signal the sender that a dataset referenced in the message was not known by the recipient.
values
- One or more instances of type MissingRef...
.@Deprecated public Dataset withMissingRef(Collection<Serial> values)
withMissing(Common...)
instead.Complex element MissingRef allows the recipient of a message to signal the sender that a dataset referenced in the message was not known by the recipient.
values
- A collection of Serial
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 Set<Common<?>> getMissing()
Complex element MissingRef allows the recipient of a message to signal the sender that a dataset referenced in the message was not known by the recipient..
Common
instancepublic boolean isSetMissing()
public Dataset withMissing(Common<?>... values)
Complex element MissingRef allows the recipient of a message to signal the sender that a dataset referenced in the message was not known by the recipient.
values
- An instances of type Common>
.public Dataset withMissing(Collection<Common<?>> values)
Complex element MissingRef allows the recipient of a message to signal the sender that a dataset referenced in the message was not known by the recipient.
values
- An instances of type Common>
.public void prepare()
This method builds the exported missingRef
field with values from
the transient missing
field. This method should typically be
called after the Dataset is configured and (optionally) before exporting an
SSRF message.
public void postLoad(SSRF root)
This method builds the transient missing
with values from the
imported missingRef
field. This method should typically be called
after the Dataset is imported from XML.
root
- the SSRF root instance.Copyright © 2016 OpenSSRF.org. All rights reserved.