applied copyright 2008
[jalview.git] / src / vamsas / objects / simple / Sequence_Helper.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
3  * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
4  * 
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  * 
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  * 
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18  */
19 package vamsas.objects.simple;
20
21 public class Sequence_Helper {
22     // Type metadata
23     private static org.apache.axis.description.TypeDesc typeDesc =
24         new org.apache.axis.description.TypeDesc(Sequence.class, true);
25
26     static {
27         typeDesc.setXmlType(new javax.xml.namespace.QName("simple.objects.vamsas", "Sequence"));
28         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
29         elemField.setFieldName("id");
30         elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
31         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
32         typeDesc.addFieldDesc(elemField);
33         elemField = new org.apache.axis.description.ElementDesc();
34         elemField.setFieldName("seq");
35         elemField.setXmlName(new javax.xml.namespace.QName("", "seq"));
36         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
37         typeDesc.addFieldDesc(elemField);
38     }
39
40     /**
41      * Return type metadata object
42      */
43     public static org.apache.axis.description.TypeDesc getTypeDesc() {
44         return typeDesc;
45     }
46
47     /**
48      * Get Custom Serializer
49      */
50     public static org.apache.axis.encoding.Serializer getSerializer(
51            java.lang.String mechType, 
52            java.lang.Class _javaType,  
53            javax.xml.namespace.QName _xmlType) {
54         return 
55           new  org.apache.axis.encoding.ser.BeanSerializer(
56             _javaType, _xmlType, typeDesc);
57     }
58
59     /**
60      * Get Custom Deserializer
61      */
62     public static org.apache.axis.encoding.Deserializer getDeserializer(
63            java.lang.String mechType, 
64            java.lang.Class _javaType,  
65            javax.xml.namespace.QName _xmlType) {
66         return 
67           new  org.apache.axis.encoding.ser.BeanDeserializer(
68             _javaType, _xmlType, typeDesc);
69     }
70
71 }