org.nmdp.gl.client.xmlxlink.jaxb.Allele Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gl-client Show documentation
Show all versions of gl-client Show documentation
Client library for the URI-based RESTful service for the gl project.
The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.05.26 at 09:52:51 PM CDT
//
package org.nmdp.gl.client.xmlxlink.jaxb;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* An allele describes variation at a particular locus. The allele representation in GL String format must not contain any of the following characters: '/', '~', '+', '|', '^'.
*
* Java class for Allele complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Allele">
* <complexContent>
* <extension base="{https://gl.immunogenomics.org/gl-resource-xlink}GlResource">
* <sequence>
* <element name="accession" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="locus">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute ref="{http://www.w3.org/1999/xlink}type fixed="locator""/>
* <attribute ref="{http://www.w3.org/1999/xlink}role fixed="hasLocus""/>
* <attribute ref="{http://www.w3.org/1999/xlink}href use="required""/>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Allele", propOrder = {
"accession",
"locus"
})
public class Allele
extends GlResource
{
@XmlElement(required = true)
protected String accession;
@XmlElement(required = true)
protected Allele.Locus locus;
/**
* Gets the value of the accession property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAccession() {
return accession;
}
/**
* Sets the value of the accession property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAccession(String value) {
this.accession = value;
}
/**
* Gets the value of the locus property.
*
* @return
* possible object is
* {@link Allele.Locus }
*
*/
public Allele.Locus getLocus() {
return locus;
}
/**
* Sets the value of the locus property.
*
* @param value
* allowed object is
* {@link Allele.Locus }
*
*/
public void setLocus(Allele.Locus value) {
this.locus = value;
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute ref="{http://www.w3.org/1999/xlink}type fixed="locator""/>
* <attribute ref="{http://www.w3.org/1999/xlink}role fixed="hasLocus""/>
* <attribute ref="{http://www.w3.org/1999/xlink}href use="required""/>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class Locus {
@XmlAttribute(namespace = "http://www.w3.org/1999/xlink")
protected TypeType type;
@XmlAttribute(namespace = "http://www.w3.org/1999/xlink")
protected String role;
@XmlAttribute(namespace = "http://www.w3.org/1999/xlink", required = true)
protected String href;
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link TypeType }
*
*/
public TypeType getType() {
if (type == null) {
return TypeType.LOCATOR;
} else {
return type;
}
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link TypeType }
*
*/
public void setType(TypeType value) {
this.type = value;
}
/**
* Gets the value of the role property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRole() {
if (role == null) {
return "hasLocus";
} else {
return role;
}
}
/**
* Sets the value of the role property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRole(String value) {
this.role = value;
}
/**
* Gets the value of the href property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHref() {
return href;
}
/**
* Sets the value of the href property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHref(String value) {
this.href = value;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy