uk.ac.ebi.jmzidml.model.mzidml
Class Affiliation
java.lang.Object
uk.ac.ebi.jmzidml.model.MzIdentMLObject
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
organizationRef
protected String organizationRef
organization
protected Organization organization
Affiliation
public Affiliation()
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.