public class Role extends Common<Role>
Sub-Elements are Address
, Email
, TelephoneFax
Example:
<Role cls="U"> <Serial cls="U">USA::JA:123</Serial> <EntryDateTime cls="U">2011-12-12T00:00:00Z</EntryDateTime> <Name cls="U">EUCOM FMFO</Name> <Country cls="U">USA</Country> <ContactRef cls="U">USA:EU:CN:1</ContactRef> </Role>
approvedBy, approvedDateTime, caseNum, cls, description, entryBy, entryByRole, entryDateTime, extReferenceRef, extReferences, idref, lastChangeBy, lastChangeByRole, lastChangeDateTime, lastObservedBy, lastReviewBy, lastReviewByRole, lastReviewDate, legacyReleasability, modAllowedBy, modAllowedByRole, observedFirstDateTime, observedLastDateTime, owner, ownerRole, quality, recommendedValue, redacted, releasability, remarkRef, remarks, securityClass, serial, state
Constructor and Description |
---|
Role()
No arg constructor.
|
Modifier and Type | Method and Description |
---|---|
Set<Address> |
getAddress()
Get the Address
|
Set<Contact> |
getContact()
Get the ContactRef
|
Set<Serial> |
getContactRef()
Deprecated.
SSRF references are managed automatically. Use
getContact() instead. |
TString |
getCountry()
Get the country to which the Role belongs.
|
D |
getEffectiveDate()
Get the date by which the dataset is to be operational or effective..
|
Set<EMail> |
getEMail()
Get the Email
|
D |
getExpirationDate()
Get the date at which the dataset will expire.
|
S50 |
getName()
Get the name or function of the Role.
|
D |
getReviewDate()
Get the date by which the dataset is to be reviewed.
|
Set<TelephoneFax> |
getTelephoneFax()
Get the TelephoneFax
|
boolean |
isSet()
Determine if the required fields in this SSRF data type instance are set.
|
boolean |
isSetAddress()
Determine if the Address is configured.
|
boolean |
isSetContact()
Determine if the contact field is configured.
|
boolean |
isSetContactRef()
Determine if the ContactRef is configured.
|
boolean |
isSetCountry()
Determine if the Country is configured.
|
boolean |
isSetEffectiveDate()
Determine if the EffectiveDate is configured.
|
boolean |
isSetEMail()
Determine if the EMail is configured.
|
boolean |
isSetExpirationDate()
Determine if the ExpirationDate is configured.
|
boolean |
isSetName()
Determine if the Name is configured.
|
boolean |
isSetReviewDate()
Determine if the ReviewDate is configured.
|
boolean |
isSetTelephoneFax()
Determine if the TelephoneFax is configured.
|
void |
postLoad(SSRF root)
Update the SSRF data type references in this Role record after loading from
XML.
|
void |
prepare()
Update the SSRF data type references in this Role record.
|
void |
setCountry(TString value)
Set the country to which the Role belongs.
|
void |
setEffectiveDate(D value)
Set the date by which the dataset is to be operational or effective..
|
void |
setExpirationDate(D value)
Set the date at which the dataset will expire.
|
void |
setName(S50 value)
Set the name or function of the Role.
|
void |
setReviewDate(D value)
Set the date by which the dataset is to be reviewed.
|
String |
toString()
Get a string representation of this Role instance configuration.
|
void |
unsetAddress()
Clear the Address field.
|
void |
unsetContactRef()
Clear the ContactRef field.
|
void |
unsetEMail()
Clear the EMail field.
|
void |
unsetTelephoneFax()
Clear the TelephoneFax field.
|
Role |
withAddress(Address... values)
Set the Address
|
Role |
withAddress(Collection<Address> values)
Set the Address
|
Role |
withContact(Collection<Contact> values)
Set the ContactRef
|
Role |
withContact(Contact... values)
Set the ContactRef
|
Role |
withContactRef(Collection<Serial> values)
Deprecated.
SSRF references are managed automatically. Use
withContact(Contact...) instead. |
Role |
withContactRef(Serial... values)
Deprecated.
SSRF references are managed automatically. Use
withContact(Contact...) instead. |
Role |
withCountry(ListCCY value)
Set the country to which the Role belongs.
|
Role |
withEffectiveDate(Calendar value)
Set the date by which the dataset is to be operational or effective.
|
Role |
withEffectiveDate(Date value)
Set the date by which the dataset is to be operational or effective.
|
Role |
withEMail(Collection<EMail> values)
Set the Email
|
Role |
withEMail(EMail... values)
Set the Email
|
Role |
withExpirationDate(Calendar value)
Set the date at which the dataset will expire.
|
Role |
withExpirationDate(Date value)
Set the date at which the dataset will expire.
|
Role |
withName(String value)
Set the name or function of the Role.
|
Role |
withReviewDate(Calendar value)
Set the date by which the dataset is to be reviewed.
|
Role |
withReviewDate(Date value)
Set the date by which the dataset is to be reviewed.
|
Role |
withTelephoneFax(Collection<TelephoneFax> values)
Set the TelephoneFax
|
Role |
withTelephoneFax(TelephoneFax... values)
Set the TelephoneFax
|
compareTo, equals, getApprovedBy, getApprovedDateTime, getCaseNum, getCls, getDescription, getEntryBy, getEntryByRole, getEntryDateTime, getExtReferenceRef, getExtReferences, getIdref, getLastChangeBy, getLastChangeByRole, getLastChangeDateTime, getLastObservedBy, getLastReviewBy, getLastReviewByRole, getLastReviewDate, getLegacyReleasability, getModAllowedBy, getModAllowedByRole, getObservedFirstDateTime, getObservedLastDateTime, getOwner, getOwnerRole, getQuality, getRecommendedValue, getRedacted, getReleasability, getRemarkRef, getRemarks, getSecurityClass, getSerial, getState, hashCode, isSetApprovedBy, isSetApprovedDateTime, isSetCaseNum, isSetCls, isSetDescription, isSetEntryBy, isSetEntryByRole, isSetEntryDateTime, isSetExtReferenceRef, isSetExtReferences, isSetIdref, isSetLastChangeBy, isSetLastChangeByRole, isSetLastChangeDateTime, isSetLastObservedBy, isSetLastReviewBy, isSetLastReviewByRole, isSetLastReviewDate, isSetLegacyReleasability, isSetModAllowedBy, isSetModAllowedByRole, isSetObservedFirstDateTime, isSetObservedLastDateTime, isSetOwner, isSetOwnerRole, isSetQuality, isSetRecommendedValue, isSetRedacted, isSetReleasability, isSetRemarkRef, isSetRemarks, isSetSecurityClass, isSetSerial, isSetState, setApprovedBy, setApprovedDateTime, setCls, setDescription, setEntryBy, setEntryDateTime, setIdref, setLastChangeBy, setLastChangeDateTime, setLastObservedBy, setLastReviewBy, setLastReviewDate, setLegacyReleasability, setModAllowedBy, setObservedFirstDateTime, setObservedLastDateTime, setOwner, setQuality, setRecommendedValue, setRedacted, setSecurityClass, setSerial, setState, unsetCaseNum, unsetExtReferenceRef, unsetExtReferences, unsetReleasability, unsetRemarkRef, unsetRemarks, withApprovedBy, withApprovedDateTime, withApprovedDateTime, withCaseNum, withCaseNum, withCls, withDescription, withEntryBy, withEntryByRole, withEntryDateTime, withExtReferenceRef, withExtReferenceRef, withExtReferences, withExtReferences, withExtReferences, withIdref, withLastChangeBy, withLastChangeByRole, withLastChangeDateTime, withLastChangeDateTime, withLastObservedBy, withLastReviewBy, withLastReviewByRole, withLastReviewDate, withLastReviewDate, withLegacyReleasability, withModAllowedBy, withModAllowedByRole, withObservedFirstDateTime, withObservedFirstDateTime, withObservedLastDateTime, withObservedLastDateTime, withOwner, withOwnerRole, withQuality, withRecommendedValue, withRedacted, withReleasability, withReleasability, withRemarkRef, withRemarkRef, withRemarkRef, withRemarks, withRemarks, withSecurityClass, withSerial, withState
public D getEffectiveDate()
D
instancepublic void setEffectiveDate(D value)
value
- a D
instancepublic boolean isSetEffectiveDate()
public D getExpirationDate()
D
instancepublic void setExpirationDate(D value)
value
- a D
instancepublic boolean isSetExpirationDate()
public D getReviewDate()
D
instancepublic void setReviewDate(D value)
value
- a D
instancepublic boolean isSetReviewDate()
public S50 getName()
S50
instancepublic void setName(S50 value)
value
- a S50
instancepublic boolean isSetName()
public TString getCountry()
TString
data typepublic void setCountry(TString value)
value
- the Country value in a TString
data typepublic boolean isSetCountry()
If configured this method also inspects the TString
wrapped value.
public Set<Address> getAddress()
Complex element Address contains the address of a Contact, Organisation or Role..
Address
instancepublic boolean isSetAddress()
public void unsetAddress()
public Set<TelephoneFax> getTelephoneFax()
Complex element TelephoneFax reflects the telephone and/or telefax number(s) of the Contact, Organisation or Role..
TelephoneFax
instancepublic boolean isSetTelephoneFax()
public void unsetTelephoneFax()
public Set<EMail> getEMail()
Complex element Email contains the email address of the Contact or Role..
EMail
instancepublic boolean isSetEMail()
public void unsetEMail()
@Deprecated public Set<Serial> getContactRef()
getContact()
instead.Complex element ContactRef references a Contact..
Serial
instancepublic boolean isSetContactRef()
public void unsetContactRef()
public Role withEffectiveDate(Calendar value)
value
- An instances of type Calendar
.public Role withEffectiveDate(Date value)
value
- An instances of type Date
.public Role withExpirationDate(Calendar value)
value
- An instances of type Calendar
.public Role withExpirationDate(Date value)
value
- An instances of type Date
.public Role withReviewDate(Calendar value)
value
- An instances of type Calendar
.public Role withReviewDate(Date value)
value
- An instances of type Date
.public Role withName(String value)
value
- An instances of type String
.public Role withCountry(ListCCY value)
value
- An instances of type ListCCY
.public Role withAddress(Address... values)
Complex element Address contains the address of a Contact, Organisation or Role.
values
- One or more instances of type Address...
.public Role withAddress(Collection<Address> values)
Complex element Address contains the address of a Contact, Organisation or Role.
values
- A collection of Address
instancespublic Role withTelephoneFax(TelephoneFax... values)
Complex element TelephoneFax reflects the telephone and/or telefax number(s) of the Contact, Organisation or Role.
values
- One or more instances of type TelephoneFax...
.public Role withTelephoneFax(Collection<TelephoneFax> values)
Complex element TelephoneFax reflects the telephone and/or telefax number(s) of the Contact, Organisation or Role.
values
- A collection of TelephoneFax
instancespublic Role withEMail(EMail... values)
Complex element Email contains the email address of the Contact or Role.
values
- One or more instances of type EMail...
.public Role withEMail(Collection<EMail> values)
Complex element Email contains the email address of the Contact or Role.
values
- A collection of EMail
instances@Deprecated public Role withContactRef(Serial... values)
withContact(Contact...)
instead.Complex element ContactRef references a Contact.
values
- One or more instances of type ContactRef...
.@Deprecated public Role withContactRef(Collection<Serial> values)
withContact(Contact...)
instead.Complex element ContactRef references a Contact.
values
- A collection of Serial
instancespublic String toString()
public boolean isSet()
public Set<Contact> getContact()
Complex element ContactRef references a Contact..
Contact
instancepublic boolean isSetContact()
public Role withContact(Contact... values)
Complex element ContactRef references a Contact.
values
- An instances of type Contact
.public Role withContact(Collection<Contact> values)
Complex element ContactRef references a Contact.
values
- An instances of type Contact
.public void prepare()
This method builds the exported contactRef
field with values from
the transient contact
field. This method should typically be
called after the Role is configured and (optionally) before exporting an
SSRF message.
public void postLoad(SSRF root)
This method builds the transient contact
with values from the
imported contactRef
field. This method should typically be called
after the Role is imported from XML.
Copyright © 2016 OpenSSRF.org. All rights reserved.