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

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

public class Affiliation
extends MzIdentMLObject
implements Serializable

Java class for AffiliationType complex type. TODO marshalling/ persistor add validation to check for case where someone gets organization and changes its id without updating ref id in affliliations and other such clases. NOTE: There is no setter method for the organizationRef. This simplifies keeping the organization object reference and organizationRef synchronized.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="AffiliationType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="organization_ref" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  Organization organization
           
protected  String organizationRef
           
 
Constructor Summary
Affiliation()
           
 
Method Summary
 Organization getOrganization()
          Get the Organization for this Affiliation
 String getOrganizationRef()
          Gets the value of the organizationRef property.
 void setOrganization(Organization organization)
          Set the Organization for this Affiliation.
 
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

organizationRef

protected String organizationRef

organization

protected Organization organization
Constructor Detail

Affiliation

public Affiliation()
Method Detail

getOrganizationRef

public String getOrganizationRef()
Gets the value of the organizationRef property.

Returns:
possible object is String

getOrganization

public Organization getOrganization()
Get the Organization for this Affiliation

Returns:
organization

setOrganization

public void setOrganization(Organization organization)
Set the Organization for this Affiliation. Update the organizationRef property also.

Parameters:
organization -


Copyright © 2012. All Rights Reserved.