|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ebi.jmzidml.model.MzIdentMLObject
uk.ac.ebi.jmzidml.model.mzidml.ContactRole
public class ContactRole
The role that a Contact plays in an organization or with respect to the associating class. A Contact may have several Roles within scope, and as such, associations to ContactRole allow the use of a Contact in a certain manner. Examples might include a provider, or a data analyst. TODO marshalling/ persistor add validation to check for case where someone gets contact and changes its id without updating ref id in ContactRole and other such clases. NOTE: There is no setter method for the contactRef. This simplifies keeping the contact object reference and contactRef synchronized.
Java class for ContactRoleType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ContactRoleType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="Role" type="{http://psidev.info/psi/pi/mzIdentML/1.1}RoleType"/> </sequence> <attribute name="contact_ref" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
Field Summary | |
---|---|
protected AbstractContact |
contact
|
protected String |
contactRef
|
protected Role |
role
|
Constructor Summary | |
---|---|
ContactRole()
|
Method Summary | |
---|---|
AbstractContact |
getContact()
|
String |
getContactRef()
Gets the value of the contactRef property. |
Organization |
getOrganization()
|
Person |
getPerson()
|
Role |
getRole()
Gets the value of the role property. |
void |
setContact(AbstractContact contact)
Set contact. |
void |
setRole(Role value)
Sets the value of the role property. |
Methods inherited from class uk.ac.ebi.jmzidml.model.MzIdentMLObject |
---|
getHid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Role role
protected String contactRef
protected AbstractContact contact
Constructor Detail |
---|
public ContactRole()
Method Detail |
---|
public Person getPerson()
public Organization getOrganization()
public Role getRole()
Role
public void setRole(Role value)
value
- allowed object is
Role
public String getContactRef()
String
public AbstractContact getContact()
public void setContact(AbstractContact contact)
contact
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |