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 Alignment_Helper
24 private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
25 Alignment.class, true);
29 typeDesc.setXmlType(new javax.xml.namespace.QName(
30 "simple.objects.vamsas", "Alignment"));
31 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
32 elemField.setFieldName("gapchar");
33 elemField.setXmlName(new javax.xml.namespace.QName("", "gapchar"));
34 elemField.setXmlType(new javax.xml.namespace.QName(
35 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
36 typeDesc.addFieldDesc(elemField);
37 elemField = new org.apache.axis.description.ElementDesc();
38 elemField.setFieldName("method");
39 elemField.setXmlName(new javax.xml.namespace.QName("", "method"));
40 elemField.setXmlType(new javax.xml.namespace.QName(
41 "http://schemas.xmlsoap.org/soap/encoding/", "string"));
42 typeDesc.addFieldDesc(elemField);
43 elemField = new org.apache.axis.description.ElementDesc();
44 elemField.setFieldName("seqs");
45 elemField.setXmlName(new javax.xml.namespace.QName("", "seqs"));
46 elemField.setXmlType(new javax.xml.namespace.QName(
47 "simple.objects.vamsas", "SequenceSet"));
48 typeDesc.addFieldDesc(elemField);
52 * Return type metadata object
54 public static org.apache.axis.description.TypeDesc getTypeDesc()
60 * Get Custom Serializer
62 public static org.apache.axis.encoding.Serializer getSerializer(
63 java.lang.String mechType, java.lang.Class _javaType,
64 javax.xml.namespace.QName _xmlType)
66 return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
71 * Get Custom Deserializer
73 public static org.apache.axis.encoding.Deserializer getDeserializer(
74 java.lang.String mechType, java.lang.Class _javaType,
75 javax.xml.namespace.QName _xmlType)
77 return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,