JAL-2011 adjust method to fix failing unit test
[jalview.git] / resources / embl_mapping.xml
1 <?xml version="1.0"?>
2 <!--
3  * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
4  * Copyright (C) $$Year-Rel$$ The Jalview Authors
5  * 
6  * This file is part of Jalview.
7  * 
8  * Jalview is free software: you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License 
10  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
11  *  
12  * Jalview is distributed in the hope that it will be useful, but 
13  * WITHOUT ANY WARRANTY; without even the implied warranty 
14  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15  * PURPOSE.  See the GNU General Public License for more details.
16  * 
17  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
18  * The Jalview Authors are detailed in the 'AUTHORS' file.
19 -->
20 <mapping xmlns="http://castor.exolab.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21         xsi:schemaLocation="http://castor.exolab.org/ ../schemas/castor-mapping.xsd">
22 <!--
23         History: Originally created from EMBL_common_V1.0
24         Updated on 24th April 2007 for WsDBFetch Service move to EMBL_Services_V1.1.xsd
25         Updated May 2016 for EMBL XML 1.2 JAL-2113 JAL-2114
26           see ftp://ftp.sra.ebi.ac.uk/meta/xsd/sra_1_5/ENA.embl.xsd
27           see http://www.ebi.ac.uk/ena/submit/data-formats
28         -->
29         <class name="jalview.datamodel.xdb.embl.EmblFile">
30                 <map-to xml="ROOT"/>
31                 <field name="entries" type="jalview.datamodel.xdb.embl.EmblEntry" collection="vector">
32                         <bind-xml name="entry"/>
33                 </field>
34                 <field name="errors" type="jalview.datamodel.xdb.embl.EmblError" collection="vector">
35                         <bind-xml name="Error"/>
36                 </field>
37         </class>
38         <class name="jalview.datamodel.xdb.embl.EmblEntry">
39                 <field name="accession" type="string">
40                         <bind-xml name="accession" node="attribute"/>
41                 </field>
42                 <!-- 
43                     in EMBL XML 1.2 sequence/@version became entry/version 
44                     entry/@version became entry/@entryVersion
45                 -->
46                 <field name="sequenceVersion" type="string">
47                         <bind-xml name="version" node="attribute"/>
48                 </field>
49                 <field name="entryVersion" type="string">
50                         <bind-xml name="entryVersion" node="attribute"/>
51                 </field>
52                 <field name="dataClass" type="string">
53                         <bind-xml name="dataClass" node="attribute"/>
54                 </field>
55                 <field name="taxonomicDivision" type="string">
56                         <bind-xml name="taxonomicDivision" node="attribute"/>
57                 </field>
58                 <field name="moleculeType" type="string">
59                         <bind-xml name="moleculeType" node="attribute"/>
60                 </field>
61                 <field name="sequenceLength" type="string">
62                         <bind-xml name="sequenceLength" node="attribute"/>
63                 </field>
64                 <field name="topology" type="string">
65                         <bind-xml name="topology" node="attribute" location="type"/>
66                 </field>
67                 <field name="firstPublicDate" type="string">
68                         <bind-xml name="firstPublic" node="attribute"/>
69                 </field>
70                 <field name="firstPublicRelease" type="string">
71                         <bind-xml name="firstPublicRelease" node="attribute"/>
72                 </field>
73                 <field name="lastUpdatedDate" type="string">
74                         <bind-xml name="lastUpdated" node="attribute"/>
75                 </field>
76                 <field name="lastUpdatedRelease" type="string">
77                         <bind-xml name="lastUpdatedRelease" node="attribute"/>
78                 </field>
79                 <field name="description" type="string">
80                         <bind-xml name="description" node="element"/>
81                 </field>
82                 <field name="keywords" type="string" collection="vector">
83                         <bind-xml name="keyword" node="element"/>
84                 </field>
85                 <field name="features" type="jalview.datamodel.xdb.embl.EmblFeature" collection="vector">
86                         <bind-xml name="feature"/>
87                 </field>
88                 <field name="dbRefs" type="jalview.datamodel.DBRefEntry" collection="vector">
89                         <bind-xml name="xref" />
90                 </field>
91                 <field name="sequence" type="jalview.datamodel.xdb.embl.EmblSequence">
92                         <bind-xml name="sequence"/>
93                 </field>
94         </class>
95         <class name="jalview.datamodel.xdb.embl.EmblSequence">
96                 <field name="sequence" type="string">
97                         <bind-xml node="text"/>
98                 </field>
99         </class>
100         <class name="jalview.datamodel.xdb.embl.EmblFeature" verify-constructable="false">
101                 <field name="name" type="string">
102                         <bind-xml name="name" node="attribute"/>
103                 </field>
104                 <field name="location" type="string">
105                         <bind-xml name="location" node="attribute"/>
106                 </field>
107                 <field name="dbRefs" type="jalview.datamodel.DBRefEntry" collection="vector">
108                         <bind-xml name="xref" node="element"/>
109                 </field>
110                 <field name="qualifiers" type="jalview.datamodel.xdb.embl.Qualifier" collection="vector">
111                         <bind-xml name="qualifier"/>
112                 </field>                                        
113         </class>
114         <class name="jalview.datamodel.DBRefEntry" verify-constructable="false">
115                 <field name="accessionId" type="java.lang.String">
116                         <bind-xml name="id" node="attribute"/>
117                 </field>
118                 <field name="source" type="java.lang.String"> 
119                         <bind-xml name="db" node="attribute"/>
120                 </field>
121                 <field name="version" type="string">
122                         <bind-xml name="secondaryId" node="attribute"/>
123                 </field>
124         </class>
125         <class  name="jalview.datamodel.xdb.embl.Qualifier" verify-constructable="false">
126                 <field name="name">
127                         <bind-xml name="name" node="attribute"/>
128                 </field>
129                 <field name="evidence" type="string" collection="array">
130                         <bind-xml name="evidence" node="element"/>
131                 </field>
132                 <field name="values" type="string" collection="array">
133                         <bind-xml name="value" node="element"/>
134                 </field>
135         </class>
136 </mapping>