public class RelatedOrganisation extends Object
Element of Organisation
Example:
<RelatedOrganisation> <Type cls="U">Reporting</Type> <Relation cls="U">Child</Relation> <Serial cls="U">USA:AR:OR:05008827</Serial> </RelatedOrganisation>
Constructor and Description |
---|
RelatedOrganisation() |
Modifier and Type | Method and Description |
---|---|
Organisation |
getOrganisation()
Get the unique reference of the Organisation associated with the current
Organisation..
|
TString |
getRelation()
Get the relationship between the two organisations..
|
Serial |
getSerial()
Deprecated.
SSRF references are managed automatically. Use
getOrganisation() instead. |
TString |
getType()
Get the type of relationship..
|
boolean |
isSet()
Determine if the required fields in this SSRF data type instance are set.
|
boolean |
isSetOrganisation()
Determine if the organisation field is configured.
|
boolean |
isSetRelation()
Determine if the Relation is configured.
|
boolean |
isSetSerial()
Determine if the Serial is configured.
|
boolean |
isSetType()
Determine if the Type is configured.
|
void |
postLoad(SSRF root)
Update the SSRF data type references in this RelatedOrganisation record
after loading from XML.
|
void |
prepare()
Update the SSRF data type references in this RelatedOrganisation record.
|
void |
setRelation(TString value)
Set the relationship between the two organisations..
|
void |
setSerial(Serial value)
Deprecated.
SSRF references are managed automatically. Use
#setOrganisation(Organisation) instead. |
void |
setType(TString value)
Set the type of relationship..
|
String |
toString()
Get a string representation of this RelatedOrganisation instance
configuration.
|
RelatedOrganisation |
withOrganisation(Organisation value)
Set the unique reference of the Organisation associated with the current
Organisation.
|
RelatedOrganisation |
withRelation(ListCFR value)
Set the relationship between the two organisations.
|
RelatedOrganisation |
withSerial(Serial value)
Deprecated.
SSRF references are managed automatically. Use
withOrganisation(Organisation) instead. |
RelatedOrganisation |
withType(ListCFT value)
Set the type of relationship.
|
public TString getType()
TString
data typepublic void setType(TString value)
value
- the Type value in a TString
data typepublic boolean isSetType()
If configured this method also inspects the TString
wrapped value.
public TString getRelation()
TString
data typepublic void setRelation(TString value)
value
- the Relation value in a TString
data typepublic boolean isSetRelation()
If configured this method also inspects the TString
wrapped value.
@Deprecated public Serial getSerial()
getOrganisation()
instead.Serial
instance@Deprecated public void setSerial(Serial value)
#setOrganisation(Organisation)
instead.value
- a Serial
instancepublic boolean isSetSerial()
public RelatedOrganisation withType(ListCFT value)
value
- An instances of type ListCFT
.public RelatedOrganisation withRelation(ListCFR value)
value
- An instances of type ListCFR
.@Deprecated public RelatedOrganisation withSerial(Serial value)
withOrganisation(Organisation)
instead.value
- An instances of type Serial
.public String toString()
public boolean isSet()
RelatedOrganisation
requires
Relation
, Serial
.
Note that this method only checks for the presence of required information; this method does not validate the information format.
public Organisation getOrganisation()
Organisation
instancepublic boolean isSetOrganisation()
public RelatedOrganisation withOrganisation(Organisation value)
value
- An instances of type Organisation
.public void prepare()
This method builds the exported serial
field with values from the
transient organisation
field. This method should typically be
called after the RelatedOrganisation is configured and (optionally) before
exporting an SSRF message.
public void postLoad(SSRF root)
This method builds the transient organisation
with values from the
imported serial
field. This method should typically be called
after the RelatedOrganisation is imported from XML. * @param root the SSRF
root instance.
Copyright © 2016 OpenSSRF.org. All rights reserved.