001 /** 002 * Copyright (C) 2010 The Roslin Institute <contact andy.law@roslin.ed.ac.uk> 003 * 004 * This file is part of the Ensembl Java API demonstration project developed by the 005 * Bioinformatics Group at The Roslin Institute, The Royal (Dick) School of 006 * Veterinary Studies, University of Edinburgh. 007 * 008 * This is free software: you can redistribute it and/or modify 009 * it under the terms of the GNU General Public License (version 3) as published by 010 * the Free Software Foundation. 011 * 012 * This software is distributed in the hope that it will be useful, 013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 015 * GNU General Public License for more details. 016 * 017 * You should have received a copy of the GNU General Public License 018 * in this software distribution. If not, see <http://www.gnu.org/licenses/gpl-3.0.html/>. 019 */ 020 021 package uk.ac.roslin.ensembl.datasourceaware; 022 023 024 import uk.ac.roslin.ensembl.model.ObjectType; 025 import uk.ac.roslin.ensembl.model.XRef; 026 import uk.ac.roslin.ensembl.config.EnsemblCoreObjectType; 027 028 /** 029 * 030 * @author tpaterso 031 */ 032 public class DAXRef extends DAObject implements XRef { 033 034 private DAExternalDB dB = null ; 035 private String dBName = null ; 036 private String version = null ; 037 private String description = null ; 038 private String infoType = null; 039 private String info = null ; 040 private String displayID = null ; 041 042 public DAExternalDB getDB() { 043 return dB; 044 } 045 046 public void setDB(DAExternalDB dB) { 047 this.dB = dB; 048 } 049 050 public String getDescription() { 051 return description; 052 } 053 054 public void setDescription(String description) { 055 this.description = description; 056 } 057 058 public String getDisplayID() { 059 return displayID; 060 } 061 062 public void setDisplayID(String displayID) { 063 this.displayID = displayID; 064 } 065 066 public String getInfo() { 067 return info; 068 } 069 070 public void setInfo(String info) { 071 this.info = info; 072 } 073 074 public String getInfoType() { 075 return infoType; 076 } 077 078 public void setInfoType(String infoType) { 079 this.infoType = infoType; 080 } 081 082 public String getVersion() { 083 return version; 084 } 085 086 public void setVersion(String version) { 087 this.version = version; 088 } 089 090 public String getDBName() { 091 return dBName; 092 } 093 094 public void setDBName(String dBName) { 095 this.dBName = dBName; 096 } 097 098 public ObjectType getType() { 099 return EnsemblCoreObjectType.xref; 100 } 101 102 }