Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.10-b140310.1920 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2015.01.21 at 09:03:36 PM CST 
  //
  
  
  package org.nmdp.ngs.gtr.jaxb;
 
XRefs are used to represent references to data from external databases. These are stored in the ClinVar database to represent objects like GeneIDs in Gene or MIM numbers in OMIM, and are flexible enough to be used broadly. The db is the database name used for the external reference (e.g. 'Gene' or 'OMIM') and the ID is that database identifier (e.g. the GeneID or MIM number). The type is optional and should be used if there are multiple types of identifiers from a database. For example, from OMIM we may get both MIM numbers and identifiers for allelic variants; those should be specified as the type for the XRef. Expect ID to not be provided only if this is used for submitting a URL on it's own. XSD does not permit choice for attributes so validation of these will need to be in another layer (XSLT)

Java class for XrefType complex type.

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

 <complexType name="XrefType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="DB" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="URL" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
       <attribute name="Source" type="{http://www.w3.org/2001/XMLSchema}boolean" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "XrefType")
 public class XrefType {
 
     @XmlAttribute(name = "DB", required = true)
     protected String db;
     @XmlAttribute(name = "Type")
     protected String type;
     @XmlAttribute(name = "ID")
     protected String id;
     @XmlAttribute(name = "URL")
     @XmlSchemaType(name = "anyURI")
     protected String url;
     @XmlAttribute(name = "Source")
     protected Boolean source;

    
Gets the value of the db property.

Returns:
possible object is
 
     public String getDB() {
         return ;
     }

    
Sets the value of the db property.

Parameters:
value allowed object is
 
     public void setDB(String value) {
         this. = value;
     }

    
Gets the value of the type property.

Returns:
possible object is
 
     public String getType() {
        return ;
    }

    
Sets the value of the type property.

Parameters:
value allowed object is
    public void setType(String value) {
        this. = value;
    }

    
Gets the value of the id property.

Returns:
possible object is
    public String getID() {
        return ;
    }

    
Sets the value of the id property.

Parameters:
value allowed object is
    public void setID(String value) {
        this. = value;
    }

    
Gets the value of the url property.

Returns:
possible object is
    public String getURL() {
        return ;
    }

    
Sets the value of the url property.

Parameters:
value allowed object is
    public void setURL(String value) {
        this. = value;
    }

    
Gets the value of the source property.

Returns:
possible object is
    public Boolean isSource() {
        return ;
    }

    
Sets the value of the source property.

Parameters:
value allowed object is
    public void setSource(Boolean value) {
        this. = value;
    }
New to GrepCode? Check out our FAQ X