JAL-1432 updated copyright notices
[jalview.git] / src / vamsas / objects / simple / Alignment_Helper.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
3  * Copyright (C) 2014 The Jalview Authors
4  * 
5  * This file is part of Jalview.
6  * 
7  * Jalview is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License 
9  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
10  *  
11  * Jalview is distributed in the hope that it will be useful, but 
12  * WITHOUT ANY WARRANTY; without even the implied warranty 
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14  * PURPOSE.  See the GNU General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
17  * The Jalview Authors are detailed in the 'AUTHORS' file.
18  */
19 package vamsas.objects.simple;
20
21 public class Alignment_Helper
22 {
23   // Type metadata
24   private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
25           Alignment.class, true);
26
27   static
28   {
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);
49   }
50
51   /**
52    * Return type metadata object
53    */
54   public static org.apache.axis.description.TypeDesc getTypeDesc()
55   {
56     return typeDesc;
57   }
58
59   /**
60    * Get Custom Serializer
61    */
62   public static org.apache.axis.encoding.Serializer getSerializer(
63           java.lang.String mechType, java.lang.Class _javaType,
64           javax.xml.namespace.QName _xmlType)
65   {
66     return new org.apache.axis.encoding.ser.BeanSerializer(_javaType,
67             _xmlType, typeDesc);
68   }
69
70   /**
71    * Get Custom Deserializer
72    */
73   public static org.apache.axis.encoding.Deserializer getDeserializer(
74           java.lang.String mechType, java.lang.Class _javaType,
75           javax.xml.namespace.QName _xmlType)
76   {
77     return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType,
78             _xmlType, typeDesc);
79   }
80
81 }