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
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.
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.
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
19 package vamsas.objects.simple;
21 public class Sequence_Helper {
23 private static org.apache.axis.description.TypeDesc typeDesc =
24 new org.apache.axis.description.TypeDesc(Sequence.class, true);
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);
41 * Return type metadata object
43 public static org.apache.axis.description.TypeDesc getTypeDesc() {
48 * Get Custom Serializer
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) {
55 new org.apache.axis.encoding.ser.BeanSerializer(
56 _javaType, _xmlType, typeDesc);
60 * Get Custom Deserializer
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) {
67 new org.apache.axis.encoding.ser.BeanDeserializer(
68 _javaType, _xmlType, typeDesc);