uk.ac.ebi.jmzidml.model.mzidml
Class ContactRole

java.lang.Object
  extended by uk.ac.ebi.jmzidml.model.MzIdentMLObject
      extended by uk.ac.ebi.jmzidml.model.mzidml.ContactRole
All Implemented Interfaces:
Serializable

public class ContactRole
extends MzIdentMLObject
implements Serializable

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>
 

See Also:
Serialized Form

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

role

protected Role role

contactRef

protected String contactRef

contact

protected AbstractContact contact
Constructor Detail

ContactRole

public ContactRole()
Method Detail

getPerson

public Person getPerson()

getOrganization

public Organization getOrganization()

getRole

public Role getRole()
Gets the value of the role property.

Returns:
possible object is Role

setRole

public void setRole(Role value)
Sets the value of the role property.

Parameters:
value - allowed object is Role

getContactRef

public String getContactRef()
Gets the value of the contactRef property.

Returns:
possible object is String

getContact

public AbstractContact getContact()

setContact

public void setContact(AbstractContact contact)
Set contact. contactRef is also updated.

Parameters:
contact -


Copyright © 2012. All Rights Reserved.