sequenceId is a string, not an integer - allows generation of unlimited unique sequen...
authorjprocter <Jim Procter>
Sun, 24 Feb 2008 20:08:56 +0000 (20:08 +0000)
committerjprocter <Jim Procter>
Sun, 24 Feb 2008 20:08:56 +0000 (20:08 +0000)
src/castor.properties [new file with mode: 0644]
src/jalview/schemabinding/version2/descriptors/JSeqDescriptor.java
src/jalview/schemes/ResidueProperties.java
src/uk/ac/ebi/picr/model/CrossReference.java [new file with mode: 0644]
src/uk/ac/ebi/picr/model/CrossReference_Helper.java [new file with mode: 0644]
src/uk/ac/ebi/picr/model/UPEntry.java [new file with mode: 0644]
src/uk/ac/ebi/picr/model/UPEntry_Helper.java [new file with mode: 0644]
src/uk/ac/ebi/www/picr/AccessionMappingService/AccessionMapperBindingStub.java [new file with mode: 0644]
src/uk/ac/ebi/www/picr/AccessionMappingService/AccessionMapperInterface.java [new file with mode: 0644]
src/uk/ac/ebi/www/picr/AccessionMappingService/AccessionMapperService.java [new file with mode: 0644]
src/uk/ac/ebi/www/picr/AccessionMappingService/AccessionMapperServiceLocator.java [new file with mode: 0644]

diff --git a/src/castor.properties b/src/castor.properties
new file mode 100644 (file)
index 0000000..72f4ee6
--- /dev/null
@@ -0,0 +1,236 @@
+# THE CASTOR PROPERTIES FILE\r
+# This file specifies values for Castor run-time which may be configured\r
+# by the user.\r
+# $Id$\r
+\r
+# This section defines Backwards compatibility switches.\r
+#\r
+# Hashtable/Map default mapping.\r
+# For backward compatibility with 0.9.5.2 and earlier.\r
+#\r
+#org.exolab.castor.xml.saveMapKeys=false\r
+\r
+# Defines the default XML parser to be used by Castor.\r
+# The parser must implement org.xml.sax.Parser.\r
+#\r
+org.exolab.castor.parser=org.apache.xerces.parsers.SAXParser\r
+\r
+# Defines the (default) XML serializer factory to use by Castor, which must\r
+# implement org.exolab.castor.xml.SerializerFactory; default is \r
+# org.exolab.castor.xml.XercesXMLSerializerFactory\r
+# \r
+# When using Castor XML with JDK 5.0, you may switch to the XercesJDK5XMLSerializerFactory\r
+# which will use the Xerces instance as shipped with the JDK itself; this avoids\r
+# having to download another Xerces instance and installing it. \r
+org.exolab.castor.xml.serializer.factory=org.exolab.castor.xml.XercesXMLSerializerFactory\r
+#org.exolab.castor.xml.serializer.factory=org.exolab.castor.xml.XercesJDK5XMLSerializerFactory\r
+\r
+# Defines the NodeType for use with Java primitive types (int, long, boolean,\r
+# etc). This value is only used by the Introspector.  Valid values are either\r
+# "attribute" or "element". By default, all primitives are marshaled as\r
+# attributes. Uncomment the following line to change the NodeType to element.\r
+#\r
+#org.exolab.castor.xml.introspector.primitive.nodetype=element\r
+\r
+# Defines the Naming "style" or conventions to use when creating XML names\r
+# from Java class or field names.\r
+# Valid values are as follows:\r
+# -----------------------------------------------------------------\r
+# lower (default)  |  All names are lowercase with hyphens\r
+#                  |  separating words.\r
+#                  |\r
+#                  |  Example: personInfo = person-info\r
+# -----------------------------------------------------------------\r
+# mixed            |  All names are mixed case, with Uppercase\r
+#                  |  character as the first letter of a new word.\r
+#                  |\r
+#                  |  Example: personInfo = personInfo\r
+#                  |  Example: FooBar     = fooBar\r
+# -----------------------------------------------------------------\r
+# {Any ClassName}  |  Any Class which implements\r
+#                  |  org.exolab.castor.xml.XMLNaming\r
+# -----------------------------------------------------------------\r
+#\r
+# By default, all names are treated as the "lower" option.  To preserve the\r
+# Java mixed-case conventions, uncomment the following line.\r
+#\r
+#org.exolab.castor.xml.naming=mixed\r
+\r
+###############################\r
+# REGULAR EXPRESSION EVALUATORS\r
+#\r
+# Defines the Regular Expression Evaluator to be used by Castor.\r
+# The evaluator must implement org.exolab.castor.util.RegExpEvaluator.\r
+#\r
+# Uncomment the following to basically suppress Regular expressions evaluation:\r
+#org.exolab.castor.regexp=org.exolab.castor.xml.util.AlwaysTrueRegExpEvaluator\r
+#\r
+# An implementation which uses the Jakarta RegExp library:\r
+#org.exolab.castor.regexp=org.exolab.castor.util.JakartaRegExpEvaluator\r
+#\r
+# An implementation which uses the Jakarta ORO library:\r
+org.exolab.castor.regexp=org.exolab.castor.util.JakartaOroEvaluator\r
+\r
+# True if all documents should be indented on output by default.\r
+# Defaults to false.\r
+#\r
+#org.exolab.castor.indent=true\r
+\r
+# True if xml documents should be validated by the SAX Parser\r
+# Defaults to false.\r
+#\r
+org.exolab.castor.parser.validation=false\r
+\r
+# True for parser to support Namespaces.\r
+# Defaults to false.\r
+#\r
+org.exolab.castor.parser.namespaces=false\r
+\r
+# True if all documents should be validated by the marshaling framework\r
+# Defaults to true.\r
+#\r
+org.exolab.castor.marshalling.validation=true\r
+\r
+# Comma separated list of SAX 2 features that should be enabled for the\r
+# default parser.\r
+#\r
+#org.exolab.castor.sax.features=\r
+\r
+# Comma separated list of SAX 2 features that should be disabled for the\r
+# default parser.\r
+#\r
+#org.exolab.castor.sax.features-to-disable\r
+\r
+# True if debugging output should be generated.\r
+# Defaults to false.\r
+#\r
+org.exolab.castor.debug=true\r
+\r
+# List of collection handlers for Java 1.1 and Java 1.2 run-times:\r
+#\r
+org.exolab.castor.mapping.collections=\\r
+  org.exolab.castor.mapping.loader.J1CollectionHandlers,\\r
+  org.exolab.castor.mapping.loader.J2CollectionHandlers\r
+\r
+# List of persistence factories for the supported database servers:\r
+#\r
+org.exolab.castor.jdo.engines=\\r
+  org.exolab.castor.jdo.drivers.OracleFactory,\\r
+  org.exolab.castor.jdo.drivers.PostgreSQLFactory,\\r
+  org.exolab.castor.jdo.drivers.SybaseFactory,\\r
+  org.exolab.castor.jdo.drivers.SQLServerFactory,\\r
+  org.exolab.castor.jdo.drivers.DB2Factory,\\r
+  org.exolab.castor.jdo.drivers.InformixFactory,\\r
+  org.exolab.castor.jdo.drivers.HsqlFactory,\\r
+  org.exolab.castor.jdo.drivers.InstantDBFactory,\\r
+  org.exolab.castor.jdo.drivers.InterbaseFactory,\\r
+  org.exolab.castor.jdo.drivers.MySQLFactory,\\r
+  org.exolab.castor.jdo.drivers.SapDbFactory,\\r
+  org.exolab.castor.jdo.drivers.GenericFactory,\\r
+  org.exolab.castor.jdo.drivers.DerbyFactory,\\r
+  org.castor.jdo.drivers.PointbaseFactory,\\r
+  org.castor.jdo.drivers.ProgressFactory\r
+\r
+# List of key generator factories:\r
+#\r
+org.exolab.castor.jdo.keyGeneratorFactories=\\r
+  org.exolab.castor.jdo.keygen.MaxKeyGeneratorFactory,\\r
+  org.exolab.castor.jdo.keygen.HighLowKeyGeneratorFactory,\\r
+  org.exolab.castor.jdo.keygen.IdentityKeyGeneratorFactory,\\r
+  org.exolab.castor.jdo.keygen.SequenceKeyGeneratorFactory,\\r
+  org.exolab.castor.jdo.keygen.UUIDKeyGeneratorFactory\r
+\r
+# Collection handlers for the source code generator:\r
+#\r
+org.exolab.castor.builder.type.j2=\\r
+  org.exolab.castor.builder.FieldInfoFactoryJ2\r
+org.exolab.castor.builder.type.j1=\\r
+  org.exolab.castor.builder.FieldInfoFactory\r
+org.exolab.castor.builder.type.odmg=\\r
+  org.exolab.castor.builder.FieldInfoFactoryODMG30\r
+\r
+# Configures the default time zone to apply to dates/times fetched from\r
+# database fields (if not already part of the data).  Specify same format as\r
+# in java.util.TimeZone.getTimeZone, or the empty string to use the computer's\r
+# local time zone. Please see http://de.wikipedia.org/wiki/Zeitzone for\r
+# detailed information about time zones.\r
+#\r
+org.exolab.castor.jdo.defaultTimeZone=\r
+#org.exolab.castor.jdo.defaultTimeZone=GMT-8:00\r
+\r
+# List of TxSynchronizeable implementations:\r
+#\r
+#org.exolab.castor.persist.TxSynchronizable=\r
+\r
+# Sets the buffer size in bytes for fetching LOBs (this is dependent upon\r
+# the JDBC driver implementation).  The value below == 5k.\r
+#\r
+org.exolab.castor.jdo.lobBufferSize=5120\r
+\r
+# True if database configuration should be initalization\r
+# when loading it (default: true).\r
+#\r
+#org.exolab.castor.jdo.DatabaseInitializeAtLoad=true\r
+\r
+# True if proxy classes should be used for JDBC connections and\r
+# prepared statements.\r
+# Defaults to true.\r
+#\r
+org.exolab.castor.persist.useProxies=false\r
+\r
+# MappingLoader implementations:\r
+#\r
+org.castor.mapping.loaderFactories=\\r
+  org.castor.mapping.JDOMappingLoaderFactory,\\r
+  org.castor.mapping.XMLMappingLoaderFactory\r
+\r
+# Cache implementations:\r
+#\r
+org.castor.cache.Factories=\\r
+  org.castor.cache.simple.NoCacheFactory,\\r
+  org.castor.cache.simple.TimeLimitedFactory,\\r
+  org.castor.cache.simple.CountLimitedFactory,\\r
+  org.castor.cache.simple.UnlimitedFactory,\\r
+  org.castor.cache.distributed.FKCacheFactory,\\r
+  org.castor.cache.distributed.JcsCacheFactory,\\r
+  org.castor.cache.distributed.JCacheFactory,\\r
+  org.castor.cache.distributed.CoherenceCacheFactory,\\r
+  org.castor.cache.distributed.OsCacheFactory,\\r
+  org.castor.cache.hashbelt.FIFOHashbeltFactory,\\r
+  org.castor.cache.hashbelt.LRUHashbeltFactory,\\r
+  org.castor.cache.distributed.EHCacheFactory,\\r
+  org.castor.cache.distributed.GigaspacesCacheFactory\r
+\r
+# TransactionManagerFactory implementations:\r
+#\r
+org.castor.transactionmanager.Factories=\\r
+  org.castor.transactionmanager.WebSphereTransactionManagerFactory,\\r
+  org.castor.transactionmanager.WebSphere5TransactionManagerFactory,\\r
+  org.castor.transactionmanager.WebSphere51TransactionManagerFactory,\\r
+  org.castor.transactionmanager.LocalTransactionManagerFactory,\\r
+  org.castor.transactionmanager.JNDIENCTransactionManagerFactory,\\r
+  org.castor.transactionmanager.JOTMTransactionManagerFactory\r
+\r
+# Selects whether the TransactionManager should be initialized at registration,\r
+# or lazily when requested for the first time.\r
+# Defaults to false.\r
+#\r
+org.castor.transactionmanager.InitializeAtRegistration=false\r
+\r
+# Instructs Castor JDO to use the JDBC 3.0-specific features to obtain\r
+# the generated value of an identity column.\r
+# Defaults to false.\r
+#\r
+org.castor.jdo.use.jdbc30=false\r
+\r
+# Specifies whether to use ANSI-compliant SQL for MS SQL Server.\r
+# Defaults to false.\r
+#\r
+org.exolab.castor.jdo.sqlserver.ansi-compliant=false\r
+\r
+# Specifyies whether the ClassDescriptorResolver should (automatically) search\r
+# for and consult with package mapping files (.castor.xml) to retrieve class\r
+# descriptor information; on by default.\r
+# Defaults to true.\r
+#\r
+#org.exolab.castor.xml.loadPackageMappings=false\r
index 738d4fc..427702d 100644 (file)
@@ -193,24 +193,21 @@ public class JSeqDescriptor extends org.exolab.castor.xml.util.XMLClassDescripto
         }\r
         desc.setValidator(fieldValidator);\r
         //-- _id\r
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_id", "id", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_id", "id", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setImmutable(true);\r
         handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
             public java.lang.Object getValue( java.lang.Object object ) \r
                 throws IllegalStateException\r
             {\r
                 JSeq target = (JSeq) object;\r
-                if (!target.hasId()) { return null; }\r
-                return new java.lang.Integer(target.getId());\r
+                return target.getId();\r
             }\r
             public void setValue( java.lang.Object object, java.lang.Object value) \r
                 throws IllegalStateException, IllegalArgumentException\r
             {\r
                 try {\r
                     JSeq target = (JSeq) object;\r
-                    // ignore null values for non optional primitives\r
-                    if (value == null) { return; }\r
-                    \r
-                    target.setId( ((java.lang.Integer) value).intValue());\r
+                    target.setId( (java.lang.String) value);\r
                 } catch (java.lang.Exception ex) {\r
                     throw new IllegalStateException(ex.toString());\r
                 }\r
@@ -228,11 +225,10 @@ public class JSeqDescriptor extends org.exolab.castor.xml.util.XMLClassDescripto
         fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
         fieldValidator.setMinOccurs(1);\r
         { //-- local scope\r
-            org.exolab.castor.xml.validators.IntValidator typeValidator;\r
-            typeValidator = new org.exolab.castor.xml.validators.IntValidator();\r
+            org.exolab.castor.xml.validators.StringValidator typeValidator;\r
+            typeValidator = new org.exolab.castor.xml.validators.StringValidator();\r
             fieldValidator.setValidator(typeValidator);\r
-            typeValidator.setMinInclusive(-2147483648);\r
-            typeValidator.setMaxInclusive(2147483647);\r
+            typeValidator.setWhiteSpace("preserve");\r
         }\r
         desc.setValidator(fieldValidator);\r
         //-- _hidden\r
index e55ce18..98868d2 100755 (executable)
@@ -1290,4 +1290,53 @@ public class ResidueProperties
     }
     return ss.toString();
   }
+  // main method generates perl representation of residue property hash
+  /// cut here
+  public static void main(String[] args)
+  {
+    Hashtable aa = new Hashtable(); 
+    System.out.println("my %aa = {");
+    // invert property hashes
+    Enumeration prop = propHash.keys();
+    while (prop.hasMoreElements())
+    {
+      String pname = (String) prop.nextElement();
+      Hashtable phash = (Hashtable) propHash.get(pname);
+      Enumeration res = phash.keys();
+      while (res.hasMoreElements())
+      {
+        String rname = (String) res.nextElement();
+        Vector aprops = (Vector) aa.get(rname);
+        if (aprops==null)
+        {
+          aprops = new Vector();
+          aa.put(rname, aprops);
+        }
+        Integer hasprop = (Integer) phash.get(rname);
+        if (hasprop.intValue()==1)
+        {
+          aprops.addElement(pname);
+        }
+      }
+    }
+    Enumeration res = aa.keys();
+    while (res.hasMoreElements())
+    {
+      String rname = (String) res.nextElement();
+      
+      System.out.print("'"+rname+"' => [");
+      Enumeration props = ((Vector) aa.get(rname)).elements();
+      while (props.hasMoreElements())
+      {
+        System.out.print("'"+(String)props.nextElement()+"'");
+        if (props.hasMoreElements())
+        {
+          System.out.println(", ");
+        }
+      }
+      System.out.println("]"+(res.hasMoreElements() ? "," : ""));
+    }
+    System.out.println("};");
+  }
+  // to here
 }
diff --git a/src/uk/ac/ebi/picr/model/CrossReference.java b/src/uk/ac/ebi/picr/model/CrossReference.java
new file mode 100644 (file)
index 0000000..04b50bf
--- /dev/null
@@ -0,0 +1,302 @@
+/**\r
+ * CrossReference.java\r
+ *\r
+ * This file was auto-generated from WSDL\r
+ * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
+ */\r
+\r
+package uk.ac.ebi.picr.model;\r
+\r
+public class CrossReference  implements java.io.Serializable {\r
+    private java.lang.String accession;\r
+    private java.lang.String accessionVersion;\r
+    private java.lang.String databaseDescription;\r
+    private java.lang.String databaseName;\r
+    private java.util.Calendar dateAdded;\r
+    private java.util.Calendar dateDeleted;\r
+    private boolean deleted;\r
+    private java.lang.String gi;\r
+    private java.lang.String taxonId;\r
+\r
+    public CrossReference() {\r
+    }\r
+\r
+    public CrossReference(\r
+           java.lang.String accession,\r
+           java.lang.String accessionVersion,\r
+           java.lang.String databaseDescription,\r
+           java.lang.String databaseName,\r
+           java.util.Calendar dateAdded,\r
+           java.util.Calendar dateDeleted,\r
+           boolean deleted,\r
+           java.lang.String gi,\r
+           java.lang.String taxonId) {\r
+           this.accession = accession;\r
+           this.accessionVersion = accessionVersion;\r
+           this.databaseDescription = databaseDescription;\r
+           this.databaseName = databaseName;\r
+           this.dateAdded = dateAdded;\r
+           this.dateDeleted = dateDeleted;\r
+           this.deleted = deleted;\r
+           this.gi = gi;\r
+           this.taxonId = taxonId;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the accession value for this CrossReference.\r
+     * \r
+     * @return accession\r
+     */\r
+    public java.lang.String getAccession() {\r
+        return accession;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the accession value for this CrossReference.\r
+     * \r
+     * @param accession\r
+     */\r
+    public void setAccession(java.lang.String accession) {\r
+        this.accession = accession;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the accessionVersion value for this CrossReference.\r
+     * \r
+     * @return accessionVersion\r
+     */\r
+    public java.lang.String getAccessionVersion() {\r
+        return accessionVersion;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the accessionVersion value for this CrossReference.\r
+     * \r
+     * @param accessionVersion\r
+     */\r
+    public void setAccessionVersion(java.lang.String accessionVersion) {\r
+        this.accessionVersion = accessionVersion;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the databaseDescription value for this CrossReference.\r
+     * \r
+     * @return databaseDescription\r
+     */\r
+    public java.lang.String getDatabaseDescription() {\r
+        return databaseDescription;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the databaseDescription value for this CrossReference.\r
+     * \r
+     * @param databaseDescription\r
+     */\r
+    public void setDatabaseDescription(java.lang.String databaseDescription) {\r
+        this.databaseDescription = databaseDescription;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the databaseName value for this CrossReference.\r
+     * \r
+     * @return databaseName\r
+     */\r
+    public java.lang.String getDatabaseName() {\r
+        return databaseName;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the databaseName value for this CrossReference.\r
+     * \r
+     * @param databaseName\r
+     */\r
+    public void setDatabaseName(java.lang.String databaseName) {\r
+        this.databaseName = databaseName;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the dateAdded value for this CrossReference.\r
+     * \r
+     * @return dateAdded\r
+     */\r
+    public java.util.Calendar getDateAdded() {\r
+        return dateAdded;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the dateAdded value for this CrossReference.\r
+     * \r
+     * @param dateAdded\r
+     */\r
+    public void setDateAdded(java.util.Calendar dateAdded) {\r
+        this.dateAdded = dateAdded;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the dateDeleted value for this CrossReference.\r
+     * \r
+     * @return dateDeleted\r
+     */\r
+    public java.util.Calendar getDateDeleted() {\r
+        return dateDeleted;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the dateDeleted value for this CrossReference.\r
+     * \r
+     * @param dateDeleted\r
+     */\r
+    public void setDateDeleted(java.util.Calendar dateDeleted) {\r
+        this.dateDeleted = dateDeleted;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the deleted value for this CrossReference.\r
+     * \r
+     * @return deleted\r
+     */\r
+    public boolean isDeleted() {\r
+        return deleted;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the deleted value for this CrossReference.\r
+     * \r
+     * @param deleted\r
+     */\r
+    public void setDeleted(boolean deleted) {\r
+        this.deleted = deleted;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the gi value for this CrossReference.\r
+     * \r
+     * @return gi\r
+     */\r
+    public java.lang.String getGi() {\r
+        return gi;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the gi value for this CrossReference.\r
+     * \r
+     * @param gi\r
+     */\r
+    public void setGi(java.lang.String gi) {\r
+        this.gi = gi;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the taxonId value for this CrossReference.\r
+     * \r
+     * @return taxonId\r
+     */\r
+    public java.lang.String getTaxonId() {\r
+        return taxonId;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the taxonId value for this CrossReference.\r
+     * \r
+     * @param taxonId\r
+     */\r
+    public void setTaxonId(java.lang.String taxonId) {\r
+        this.taxonId = taxonId;\r
+    }\r
+\r
+    private java.lang.Object __equalsCalc = null;\r
+    public synchronized boolean equals(java.lang.Object obj) {\r
+        if (!(obj instanceof CrossReference)) return false;\r
+        CrossReference other = (CrossReference) obj;\r
+        if (obj == null) return false;\r
+        if (this == obj) return true;\r
+        if (__equalsCalc != null) {\r
+            return (__equalsCalc == obj);\r
+        }\r
+        __equalsCalc = obj;\r
+        boolean _equals;\r
+        _equals = true && \r
+            ((this.accession==null && other.getAccession()==null) || \r
+             (this.accession!=null &&\r
+              this.accession.equals(other.getAccession()))) &&\r
+            ((this.accessionVersion==null && other.getAccessionVersion()==null) || \r
+             (this.accessionVersion!=null &&\r
+              this.accessionVersion.equals(other.getAccessionVersion()))) &&\r
+            ((this.databaseDescription==null && other.getDatabaseDescription()==null) || \r
+             (this.databaseDescription!=null &&\r
+              this.databaseDescription.equals(other.getDatabaseDescription()))) &&\r
+            ((this.databaseName==null && other.getDatabaseName()==null) || \r
+             (this.databaseName!=null &&\r
+              this.databaseName.equals(other.getDatabaseName()))) &&\r
+            ((this.dateAdded==null && other.getDateAdded()==null) || \r
+             (this.dateAdded!=null &&\r
+              this.dateAdded.equals(other.getDateAdded()))) &&\r
+            ((this.dateDeleted==null && other.getDateDeleted()==null) || \r
+             (this.dateDeleted!=null &&\r
+              this.dateDeleted.equals(other.getDateDeleted()))) &&\r
+            this.deleted == other.isDeleted() &&\r
+            ((this.gi==null && other.getGi()==null) || \r
+             (this.gi!=null &&\r
+              this.gi.equals(other.getGi()))) &&\r
+            ((this.taxonId==null && other.getTaxonId()==null) || \r
+             (this.taxonId!=null &&\r
+              this.taxonId.equals(other.getTaxonId())));\r
+        __equalsCalc = null;\r
+        return _equals;\r
+    }\r
+\r
+    private boolean __hashCodeCalc = false;\r
+    public synchronized int hashCode() {\r
+        if (__hashCodeCalc) {\r
+            return 0;\r
+        }\r
+        __hashCodeCalc = true;\r
+        int _hashCode = 1;\r
+        if (getAccession() != null) {\r
+            _hashCode += getAccession().hashCode();\r
+        }\r
+        if (getAccessionVersion() != null) {\r
+            _hashCode += getAccessionVersion().hashCode();\r
+        }\r
+        if (getDatabaseDescription() != null) {\r
+            _hashCode += getDatabaseDescription().hashCode();\r
+        }\r
+        if (getDatabaseName() != null) {\r
+            _hashCode += getDatabaseName().hashCode();\r
+        }\r
+        if (getDateAdded() != null) {\r
+            _hashCode += getDateAdded().hashCode();\r
+        }\r
+        if (getDateDeleted() != null) {\r
+            _hashCode += getDateDeleted().hashCode();\r
+        }\r
+        _hashCode += (isDeleted() ? Boolean.TRUE : Boolean.FALSE).hashCode();\r
+        if (getGi() != null) {\r
+            _hashCode += getGi().hashCode();\r
+        }\r
+        if (getTaxonId() != null) {\r
+            _hashCode += getTaxonId().hashCode();\r
+        }\r
+        __hashCodeCalc = false;\r
+        return _hashCode;\r
+    }\r
+\r
+}\r
diff --git a/src/uk/ac/ebi/picr/model/CrossReference_Helper.java b/src/uk/ac/ebi/picr/model/CrossReference_Helper.java
new file mode 100644 (file)
index 0000000..0613a0c
--- /dev/null
@@ -0,0 +1,95 @@
+/**\r
+ * CrossReference_Helper.java\r
+ *\r
+ * This file was auto-generated from WSDL\r
+ * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
+ */\r
+\r
+package uk.ac.ebi.picr.model;\r
+\r
+public class CrossReference_Helper {\r
+    // Type metadata\r
+    private static org.apache.axis.description.TypeDesc typeDesc =\r
+        new org.apache.axis.description.TypeDesc(CrossReference.class, true);\r
+\r
+    static {\r
+        typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "CrossReference"));\r
+        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("accession");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "accession"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));\r
+        typeDesc.addFieldDesc(elemField);\r
+        elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("accessionVersion");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "accessionVersion"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));\r
+        typeDesc.addFieldDesc(elemField);\r
+        elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("databaseDescription");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "databaseDescription"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));\r
+        typeDesc.addFieldDesc(elemField);\r
+        elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("databaseName");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "databaseName"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));\r
+        typeDesc.addFieldDesc(elemField);\r
+        elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("dateAdded");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "dateAdded"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));\r
+        typeDesc.addFieldDesc(elemField);\r
+        elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("dateDeleted");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "dateDeleted"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));\r
+        typeDesc.addFieldDesc(elemField);\r
+        elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("deleted");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "deleted"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));\r
+        typeDesc.addFieldDesc(elemField);\r
+        elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("gi");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "gi"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));\r
+        typeDesc.addFieldDesc(elemField);\r
+        elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("taxonId");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "taxonId"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));\r
+        typeDesc.addFieldDesc(elemField);\r
+    }\r
+\r
+    /**\r
+     * Return type metadata object\r
+     */\r
+    public static org.apache.axis.description.TypeDesc getTypeDesc() {\r
+        return typeDesc;\r
+    }\r
+\r
+    /**\r
+     * Get Custom Serializer\r
+     */\r
+    public static org.apache.axis.encoding.Serializer getSerializer(\r
+           java.lang.String mechType, \r
+           java.lang.Class _javaType,  \r
+           javax.xml.namespace.QName _xmlType) {\r
+        return \r
+          new  org.apache.axis.encoding.ser.BeanSerializer(\r
+            _javaType, _xmlType, typeDesc);\r
+    }\r
+\r
+    /**\r
+     * Get Custom Deserializer\r
+     */\r
+    public static org.apache.axis.encoding.Deserializer getDeserializer(\r
+           java.lang.String mechType, \r
+           java.lang.Class _javaType,  \r
+           javax.xml.namespace.QName _xmlType) {\r
+        return \r
+          new  org.apache.axis.encoding.ser.BeanDeserializer(\r
+            _javaType, _xmlType, typeDesc);\r
+    }\r
+\r
+}\r
diff --git a/src/uk/ac/ebi/picr/model/UPEntry.java b/src/uk/ac/ebi/picr/model/UPEntry.java
new file mode 100644 (file)
index 0000000..2237ba8
--- /dev/null
@@ -0,0 +1,251 @@
+/**\r
+ * UPEntry.java\r
+ *\r
+ * This file was auto-generated from WSDL\r
+ * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
+ */\r
+\r
+package uk.ac.ebi.picr.model;\r
+\r
+public class UPEntry  implements java.io.Serializable {\r
+    private java.lang.String CRC64;\r
+    private java.lang.String UPI;\r
+    private uk.ac.ebi.picr.model.CrossReference[] identicalCrossReferences;\r
+    private uk.ac.ebi.picr.model.CrossReference[] logicalCrossReferences;\r
+    private java.lang.String sequence;\r
+    private java.util.Calendar timestamp;\r
+\r
+    public UPEntry() {\r
+    }\r
+\r
+    public UPEntry(\r
+           java.lang.String CRC64,\r
+           java.lang.String UPI,\r
+           uk.ac.ebi.picr.model.CrossReference[] identicalCrossReferences,\r
+           uk.ac.ebi.picr.model.CrossReference[] logicalCrossReferences,\r
+           java.lang.String sequence,\r
+           java.util.Calendar timestamp) {\r
+           this.CRC64 = CRC64;\r
+           this.UPI = UPI;\r
+           this.identicalCrossReferences = identicalCrossReferences;\r
+           this.logicalCrossReferences = logicalCrossReferences;\r
+           this.sequence = sequence;\r
+           this.timestamp = timestamp;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the CRC64 value for this UPEntry.\r
+     * \r
+     * @return CRC64\r
+     */\r
+    public java.lang.String getCRC64() {\r
+        return CRC64;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the CRC64 value for this UPEntry.\r
+     * \r
+     * @param CRC64\r
+     */\r
+    public void setCRC64(java.lang.String CRC64) {\r
+        this.CRC64 = CRC64;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the UPI value for this UPEntry.\r
+     * \r
+     * @return UPI\r
+     */\r
+    public java.lang.String getUPI() {\r
+        return UPI;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the UPI value for this UPEntry.\r
+     * \r
+     * @param UPI\r
+     */\r
+    public void setUPI(java.lang.String UPI) {\r
+        this.UPI = UPI;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the identicalCrossReferences value for this UPEntry.\r
+     * \r
+     * @return identicalCrossReferences\r
+     */\r
+    public uk.ac.ebi.picr.model.CrossReference[] getIdenticalCrossReferences() {\r
+        return identicalCrossReferences;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the identicalCrossReferences value for this UPEntry.\r
+     * \r
+     * @param identicalCrossReferences\r
+     */\r
+    public void setIdenticalCrossReferences(uk.ac.ebi.picr.model.CrossReference[] identicalCrossReferences) {\r
+        this.identicalCrossReferences = identicalCrossReferences;\r
+    }\r
+\r
+    public uk.ac.ebi.picr.model.CrossReference getIdenticalCrossReferences(int i) {\r
+        return this.identicalCrossReferences[i];\r
+    }\r
+\r
+    public void setIdenticalCrossReferences(int i, uk.ac.ebi.picr.model.CrossReference _value) {\r
+        this.identicalCrossReferences[i] = _value;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the logicalCrossReferences value for this UPEntry.\r
+     * \r
+     * @return logicalCrossReferences\r
+     */\r
+    public uk.ac.ebi.picr.model.CrossReference[] getLogicalCrossReferences() {\r
+        return logicalCrossReferences;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the logicalCrossReferences value for this UPEntry.\r
+     * \r
+     * @param logicalCrossReferences\r
+     */\r
+    public void setLogicalCrossReferences(uk.ac.ebi.picr.model.CrossReference[] logicalCrossReferences) {\r
+        this.logicalCrossReferences = logicalCrossReferences;\r
+    }\r
+\r
+    public uk.ac.ebi.picr.model.CrossReference getLogicalCrossReferences(int i) {\r
+        return this.logicalCrossReferences[i];\r
+    }\r
+\r
+    public void setLogicalCrossReferences(int i, uk.ac.ebi.picr.model.CrossReference _value) {\r
+        this.logicalCrossReferences[i] = _value;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the sequence value for this UPEntry.\r
+     * \r
+     * @return sequence\r
+     */\r
+    public java.lang.String getSequence() {\r
+        return sequence;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the sequence value for this UPEntry.\r
+     * \r
+     * @param sequence\r
+     */\r
+    public void setSequence(java.lang.String sequence) {\r
+        this.sequence = sequence;\r
+    }\r
+\r
+\r
+    /**\r
+     * Gets the timestamp value for this UPEntry.\r
+     * \r
+     * @return timestamp\r
+     */\r
+    public java.util.Calendar getTimestamp() {\r
+        return timestamp;\r
+    }\r
+\r
+\r
+    /**\r
+     * Sets the timestamp value for this UPEntry.\r
+     * \r
+     * @param timestamp\r
+     */\r
+    public void setTimestamp(java.util.Calendar timestamp) {\r
+        this.timestamp = timestamp;\r
+    }\r
+\r
+    private java.lang.Object __equalsCalc = null;\r
+    public synchronized boolean equals(java.lang.Object obj) {\r
+        if (!(obj instanceof UPEntry)) return false;\r
+        UPEntry other = (UPEntry) obj;\r
+        if (obj == null) return false;\r
+        if (this == obj) return true;\r
+        if (__equalsCalc != null) {\r
+            return (__equalsCalc == obj);\r
+        }\r
+        __equalsCalc = obj;\r
+        boolean _equals;\r
+        _equals = true && \r
+            ((this.CRC64==null && other.getCRC64()==null) || \r
+             (this.CRC64!=null &&\r
+              this.CRC64.equals(other.getCRC64()))) &&\r
+            ((this.UPI==null && other.getUPI()==null) || \r
+             (this.UPI!=null &&\r
+              this.UPI.equals(other.getUPI()))) &&\r
+            ((this.identicalCrossReferences==null && other.getIdenticalCrossReferences()==null) || \r
+             (this.identicalCrossReferences!=null &&\r
+              java.util.Arrays.equals(this.identicalCrossReferences, other.getIdenticalCrossReferences()))) &&\r
+            ((this.logicalCrossReferences==null && other.getLogicalCrossReferences()==null) || \r
+             (this.logicalCrossReferences!=null &&\r
+              java.util.Arrays.equals(this.logicalCrossReferences, other.getLogicalCrossReferences()))) &&\r
+            ((this.sequence==null && other.getSequence()==null) || \r
+             (this.sequence!=null &&\r
+              this.sequence.equals(other.getSequence()))) &&\r
+            ((this.timestamp==null && other.getTimestamp()==null) || \r
+             (this.timestamp!=null &&\r
+              this.timestamp.equals(other.getTimestamp())));\r
+        __equalsCalc = null;\r
+        return _equals;\r
+    }\r
+\r
+    private boolean __hashCodeCalc = false;\r
+    public synchronized int hashCode() {\r
+        if (__hashCodeCalc) {\r
+            return 0;\r
+        }\r
+        __hashCodeCalc = true;\r
+        int _hashCode = 1;\r
+        if (getCRC64() != null) {\r
+            _hashCode += getCRC64().hashCode();\r
+        }\r
+        if (getUPI() != null) {\r
+            _hashCode += getUPI().hashCode();\r
+        }\r
+        if (getIdenticalCrossReferences() != null) {\r
+            for (int i=0;\r
+                 i<java.lang.reflect.Array.getLength(getIdenticalCrossReferences());\r
+                 i++) {\r
+                java.lang.Object obj = java.lang.reflect.Array.get(getIdenticalCrossReferences(), i);\r
+                if (obj != null &&\r
+                    !obj.getClass().isArray()) {\r
+                    _hashCode += obj.hashCode();\r
+                }\r
+            }\r
+        }\r
+        if (getLogicalCrossReferences() != null) {\r
+            for (int i=0;\r
+                 i<java.lang.reflect.Array.getLength(getLogicalCrossReferences());\r
+                 i++) {\r
+                java.lang.Object obj = java.lang.reflect.Array.get(getLogicalCrossReferences(), i);\r
+                if (obj != null &&\r
+                    !obj.getClass().isArray()) {\r
+                    _hashCode += obj.hashCode();\r
+                }\r
+            }\r
+        }\r
+        if (getSequence() != null) {\r
+            _hashCode += getSequence().hashCode();\r
+        }\r
+        if (getTimestamp() != null) {\r
+            _hashCode += getTimestamp().hashCode();\r
+        }\r
+        __hashCodeCalc = false;\r
+        return _hashCode;\r
+    }\r
+\r
+}\r
diff --git a/src/uk/ac/ebi/picr/model/UPEntry_Helper.java b/src/uk/ac/ebi/picr/model/UPEntry_Helper.java
new file mode 100644 (file)
index 0000000..edb61d5
--- /dev/null
@@ -0,0 +1,82 @@
+/**\r
+ * UPEntry_Helper.java\r
+ *\r
+ * This file was auto-generated from WSDL\r
+ * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
+ */\r
+\r
+package uk.ac.ebi.picr.model;\r
+\r
+public class UPEntry_Helper {\r
+    // Type metadata\r
+    private static org.apache.axis.description.TypeDesc typeDesc =\r
+        new org.apache.axis.description.TypeDesc(UPEntry.class, true);\r
+\r
+    static {\r
+        typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "UPEntry"));\r
+        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("CRC64");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "CRC64"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));\r
+        typeDesc.addFieldDesc(elemField);\r
+        elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("UPI");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "UPI"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));\r
+        typeDesc.addFieldDesc(elemField);\r
+        elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("identicalCrossReferences");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "identicalCrossReferences"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "CrossReference"));\r
+        elemField.setMinOccurs(0);\r
+        typeDesc.addFieldDesc(elemField);\r
+        elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("logicalCrossReferences");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "logicalCrossReferences"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "CrossReference"));\r
+        elemField.setMinOccurs(0);\r
+        typeDesc.addFieldDesc(elemField);\r
+        elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("sequence");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "sequence"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));\r
+        typeDesc.addFieldDesc(elemField);\r
+        elemField = new org.apache.axis.description.ElementDesc();\r
+        elemField.setFieldName("timestamp");\r
+        elemField.setXmlName(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "timestamp"));\r
+        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));\r
+        typeDesc.addFieldDesc(elemField);\r
+    }\r
+\r
+    /**\r
+     * Return type metadata object\r
+     */\r
+    public static org.apache.axis.description.TypeDesc getTypeDesc() {\r
+        return typeDesc;\r
+    }\r
+\r
+    /**\r
+     * Get Custom Serializer\r
+     */\r
+    public static org.apache.axis.encoding.Serializer getSerializer(\r
+           java.lang.String mechType, \r
+           java.lang.Class _javaType,  \r
+           javax.xml.namespace.QName _xmlType) {\r
+        return \r
+          new  org.apache.axis.encoding.ser.BeanSerializer(\r
+            _javaType, _xmlType, typeDesc);\r
+    }\r
+\r
+    /**\r
+     * Get Custom Deserializer\r
+     */\r
+    public static org.apache.axis.encoding.Deserializer getDeserializer(\r
+           java.lang.String mechType, \r
+           java.lang.Class _javaType,  \r
+           javax.xml.namespace.QName _xmlType) {\r
+        return \r
+          new  org.apache.axis.encoding.ser.BeanDeserializer(\r
+            _javaType, _xmlType, typeDesc);\r
+    }\r
+\r
+}\r
diff --git a/src/uk/ac/ebi/www/picr/AccessionMappingService/AccessionMapperBindingStub.java b/src/uk/ac/ebi/www/picr/AccessionMappingService/AccessionMapperBindingStub.java
new file mode 100644 (file)
index 0000000..e31f288
--- /dev/null
@@ -0,0 +1,254 @@
+/**\r
+ * AccessionMapperBindingStub.java\r
+ *\r
+ * This file was auto-generated from WSDL\r
+ * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
+ */\r
+\r
+package uk.ac.ebi.www.picr.AccessionMappingService;\r
+\r
+public class AccessionMapperBindingStub extends org.apache.axis.client.Stub implements uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperInterface {\r
+    private java.util.Vector cachedSerClasses = new java.util.Vector();\r
+    private java.util.Vector cachedSerQNames = new java.util.Vector();\r
+    private java.util.Vector cachedSerFactories = new java.util.Vector();\r
+    private java.util.Vector cachedDeserFactories = new java.util.Vector();\r
+\r
+    static org.apache.axis.description.OperationDesc [] _operations;\r
+\r
+    static {\r
+        _operations = new org.apache.axis.description.OperationDesc[3];\r
+        _initOperationDesc1();\r
+    }
+\r
+    private static void _initOperationDesc1(){\r
+        org.apache.axis.description.OperationDesc oper;\r
+        oper = new org.apache.axis.description.OperationDesc();\r
+        oper.setName("getUPIForSequence");\r
+        oper.addParameter(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "sequence"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);\r
+        oper.addParameter(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "searchDatabases"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String[].class, org.apache.axis.description.ParameterDesc.IN, false, false);\r
+        oper.addParameter(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "taxonId"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);\r
+        oper.addParameter(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "onlyActive"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);\r
+        oper.setReturnType(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "UPEntry"));\r
+        oper.setReturnClass(uk.ac.ebi.picr.model.UPEntry.class);\r
+        oper.setReturnQName(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "getUPIForSequenceReturn"));\r
+        oper.setStyle(org.apache.axis.constants.Style.WRAPPED);\r
+        oper.setUse(org.apache.axis.constants.Use.LITERAL);\r
+        _operations[0] = oper;\r
+\r
+        oper = new org.apache.axis.description.OperationDesc();\r
+        oper.setName("getUPIForAccession");\r
+        oper.addParameter(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "accession"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);\r
+        oper.addParameter(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "ac_version"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);\r
+        oper.addParameter(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "searchDatabases"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String[].class, org.apache.axis.description.ParameterDesc.IN, false, false);\r
+        oper.addParameter(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "taxonId"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);\r
+        oper.addParameter(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "onlyActive"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);\r
+        oper.setReturnType(new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "UPEntry"));\r
+        oper.setReturnClass(uk.ac.ebi.picr.model.UPEntry[].class);\r
+        oper.setReturnQName(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "getUPIForAccessionReturn"));\r
+        oper.setStyle(org.apache.axis.constants.Style.WRAPPED);\r
+        oper.setUse(org.apache.axis.constants.Use.LITERAL);\r
+        _operations[1] = oper;\r
+\r
+        oper = new org.apache.axis.description.OperationDesc();\r
+        oper.setName("getMappedDatabaseNames");\r
+        oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));\r
+        oper.setReturnClass(java.lang.String[].class);\r
+        oper.setReturnQName(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "mappedDatabases"));\r
+        oper.setStyle(org.apache.axis.constants.Style.WRAPPED);\r
+        oper.setUse(org.apache.axis.constants.Use.LITERAL);\r
+        _operations[2] = oper;\r
+\r
+    }\r
+\r
+    public AccessionMapperBindingStub() throws org.apache.axis.AxisFault {\r
+         this(null);\r
+    }\r
+\r
+    public AccessionMapperBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {\r
+         this(service);\r
+         super.cachedEndpoint = endpointURL;\r
+    }\r
+\r
+    public AccessionMapperBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {\r
+        if (service == null) {\r
+            super.service = new org.apache.axis.client.Service();\r
+        } else {\r
+            super.service = service;\r
+        }\r
+            java.lang.Class cls;\r
+            javax.xml.namespace.QName qName;\r
+            java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;\r
+            java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;\r
+            java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;\r
+            java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;\r
+            java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;\r
+            java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;\r
+            java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;\r
+            java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;\r
+            java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;\r
+            java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;\r
+            qName = new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "UPEntry");\r
+            cachedSerQNames.add(qName);\r
+            cls = uk.ac.ebi.picr.model.UPEntry.class;\r
+            cachedSerClasses.add(cls);\r
+            cachedSerFactories.add(beansf);\r
+            cachedDeserFactories.add(beandf);\r
+\r
+            qName = new javax.xml.namespace.QName("http://model.picr.ebi.ac.uk", "CrossReference");\r
+            cachedSerQNames.add(qName);\r
+            cls = uk.ac.ebi.picr.model.CrossReference.class;\r
+            cachedSerClasses.add(cls);\r
+            cachedSerFactories.add(beansf);\r
+            cachedDeserFactories.add(beandf);\r
+\r
+    }\r
+\r
+    protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {\r
+        try {\r
+            org.apache.axis.client.Call _call =\r
+                    (org.apache.axis.client.Call) super.service.createCall();\r
+            if (super.maintainSessionSet) {\r
+                _call.setMaintainSession(super.maintainSession);\r
+            }\r
+            if (super.cachedUsername != null) {\r
+                _call.setUsername(super.cachedUsername);\r
+            }\r
+            if (super.cachedPassword != null) {\r
+                _call.setPassword(super.cachedPassword);\r
+            }\r
+            if (super.cachedEndpoint != null) {\r
+                _call.setTargetEndpointAddress(super.cachedEndpoint);\r
+            }\r
+            if (super.cachedTimeout != null) {\r
+                _call.setTimeout(super.cachedTimeout);\r
+            }\r
+            if (super.cachedPortName != null) {\r
+                _call.setPortName(super.cachedPortName);\r
+            }\r
+            java.util.Enumeration keys = super.cachedProperties.keys();\r
+            while (keys.hasMoreElements()) {\r
+                java.lang.String key = (java.lang.String) keys.nextElement();\r
+                _call.setProperty(key, super.cachedProperties.get(key));\r
+            }\r
+            // All the type mapping information is registered\r
+            // when the first call is made.\r
+            // The type mapping information is actually registered in\r
+            // the TypeMappingRegistry of the service, which\r
+            // is the reason why registration is only needed for the first call.\r
+            synchronized (this) {\r
+                if (firstCall()) {\r
+                    // must set encoding style before registering serializers\r
+                    _call.setEncodingStyle(null);\r
+                    for (int i = 0; i < cachedSerFactories.size(); ++i) {\r
+                        java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);\r
+                        javax.xml.namespace.QName qName =\r
+                                (javax.xml.namespace.QName) cachedSerQNames.get(i);\r
+                        java.lang.Class sf = (java.lang.Class)\r
+                                 cachedSerFactories.get(i);\r
+                        java.lang.Class df = (java.lang.Class)\r
+                                 cachedDeserFactories.get(i);\r
+                        _call.registerTypeMapping(cls, qName, sf, df, false);\r
+                    }\r
+                }\r
+            }\r
+            return _call;\r
+        }\r
+        catch (java.lang.Throwable _t) {\r
+            throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);\r
+        }\r
+    }\r
+\r
+    public uk.ac.ebi.picr.model.UPEntry getUPIForSequence(java.lang.String sequence, java.lang.String[] searchDatabases, java.lang.String taxonId, boolean onlyActive) throws java.rmi.RemoteException {\r
+        if (super.cachedEndpoint == null) {\r
+            throw new org.apache.axis.NoEndPointException();\r
+        }\r
+        org.apache.axis.client.Call _call = createCall();\r
+        _call.setOperation(_operations[0]);\r
+        _call.setUseSOAPAction(true);\r
+        _call.setSOAPActionURI("getUPIForSequence");\r
+        _call.setEncodingStyle(null);\r
+        _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);\r
+        _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);\r
+        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);\r
+        _call.setOperationName(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "getUPIForSequence"));\r
+\r
+        setRequestHeaders(_call);\r
+        setAttachments(_call);\r
+        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {sequence, searchDatabases, taxonId, new java.lang.Boolean(onlyActive)});\r
+\r
+        if (_resp instanceof java.rmi.RemoteException) {\r
+            throw (java.rmi.RemoteException)_resp;\r
+        }\r
+        else {\r
+            extractAttachments(_call);\r
+            try {\r
+                return (uk.ac.ebi.picr.model.UPEntry) _resp;\r
+            } catch (java.lang.Exception _exception) {\r
+                return (uk.ac.ebi.picr.model.UPEntry) org.apache.axis.utils.JavaUtils.convert(_resp, uk.ac.ebi.picr.model.UPEntry.class);\r
+            }\r
+        }\r
+    }\r
+\r
+    public uk.ac.ebi.picr.model.UPEntry[] getUPIForAccession(java.lang.String accession, java.lang.String ac_version, java.lang.String[] searchDatabases, java.lang.String taxonId, boolean onlyActive) throws java.rmi.RemoteException {\r
+        if (super.cachedEndpoint == null) {\r
+            throw new org.apache.axis.NoEndPointException();\r
+        }\r
+        org.apache.axis.client.Call _call = createCall();\r
+        _call.setOperation(_operations[1]);\r
+        _call.setUseSOAPAction(true);\r
+        _call.setSOAPActionURI("getUPIForAccession");\r
+        _call.setEncodingStyle(null);\r
+        _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);\r
+        _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);\r
+        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);\r
+        _call.setOperationName(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "getUPIForAccession"));\r
+\r
+        setRequestHeaders(_call);\r
+        setAttachments(_call);\r
+        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {accession, ac_version, searchDatabases, taxonId, new java.lang.Boolean(onlyActive)});\r
+\r
+        if (_resp instanceof java.rmi.RemoteException) {\r
+            throw (java.rmi.RemoteException)_resp;\r
+        }\r
+        else {\r
+            extractAttachments(_call);\r
+            try {\r
+                return (uk.ac.ebi.picr.model.UPEntry[]) _resp;\r
+            } catch (java.lang.Exception _exception) {\r
+                return (uk.ac.ebi.picr.model.UPEntry[]) org.apache.axis.utils.JavaUtils.convert(_resp, uk.ac.ebi.picr.model.UPEntry[].class);\r
+            }\r
+        }\r
+    }\r
+\r
+    public java.lang.String[] getMappedDatabaseNames() throws java.rmi.RemoteException {\r
+        if (super.cachedEndpoint == null) {\r
+            throw new org.apache.axis.NoEndPointException();\r
+        }\r
+        org.apache.axis.client.Call _call = createCall();\r
+        _call.setOperation(_operations[2]);\r
+        _call.setUseSOAPAction(true);\r
+        _call.setSOAPActionURI("getMappedDatabaseNames");\r
+        _call.setEncodingStyle(null);\r
+        _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);\r
+        _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);\r
+        _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);\r
+        _call.setOperationName(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "getMappedDatabaseNames"));\r
+\r
+        setRequestHeaders(_call);\r
+        setAttachments(_call);\r
+        java.lang.Object _resp = _call.invoke(new java.lang.Object[] {});\r
+\r
+        if (_resp instanceof java.rmi.RemoteException) {\r
+            throw (java.rmi.RemoteException)_resp;\r
+        }\r
+        else {\r
+            extractAttachments(_call);\r
+            try {\r
+                return (java.lang.String[]) _resp;\r
+            } catch (java.lang.Exception _exception) {\r
+                return (java.lang.String[]) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String[].class);\r
+            }\r
+        }\r
+    }\r
+\r
+}\r
diff --git a/src/uk/ac/ebi/www/picr/AccessionMappingService/AccessionMapperInterface.java b/src/uk/ac/ebi/www/picr/AccessionMappingService/AccessionMapperInterface.java
new file mode 100644 (file)
index 0000000..9ddf349
--- /dev/null
@@ -0,0 +1,14 @@
+/**\r
+ * AccessionMapperInterface.java\r
+ *\r
+ * This file was auto-generated from WSDL\r
+ * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
+ */\r
+\r
+package uk.ac.ebi.www.picr.AccessionMappingService;\r
+\r
+public interface AccessionMapperInterface extends java.rmi.Remote {\r
+    public uk.ac.ebi.picr.model.UPEntry getUPIForSequence(java.lang.String sequence, java.lang.String[] searchDatabases, java.lang.String taxonId, boolean onlyActive) throws java.rmi.RemoteException;\r
+    public uk.ac.ebi.picr.model.UPEntry[] getUPIForAccession(java.lang.String accession, java.lang.String ac_version, java.lang.String[] searchDatabases, java.lang.String taxonId, boolean onlyActive) throws java.rmi.RemoteException;\r
+    public java.lang.String[] getMappedDatabaseNames() throws java.rmi.RemoteException;\r
+}\r
diff --git a/src/uk/ac/ebi/www/picr/AccessionMappingService/AccessionMapperService.java b/src/uk/ac/ebi/www/picr/AccessionMappingService/AccessionMapperService.java
new file mode 100644 (file)
index 0000000..1f08f84
--- /dev/null
@@ -0,0 +1,16 @@
+/**\r
+ * AccessionMapperService.java\r
+ *\r
+ * This file was auto-generated from WSDL\r
+ * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
+ */\r
+\r
+package uk.ac.ebi.www.picr.AccessionMappingService;\r
+\r
+public interface AccessionMapperService extends javax.xml.rpc.Service {\r
+    public java.lang.String getAccessionMapperPortAddress();\r
+\r
+    public uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperInterface getAccessionMapperPort() throws javax.xml.rpc.ServiceException;\r
+\r
+    public uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperInterface getAccessionMapperPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;\r
+}\r
diff --git a/src/uk/ac/ebi/www/picr/AccessionMappingService/AccessionMapperServiceLocator.java b/src/uk/ac/ebi/www/picr/AccessionMappingService/AccessionMapperServiceLocator.java
new file mode 100644 (file)
index 0000000..4da3262
--- /dev/null
@@ -0,0 +1,136 @@
+/**\r
+ * AccessionMapperServiceLocator.java\r
+ *\r
+ * This file was auto-generated from WSDL\r
+ * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
+ */\r
+\r
+package uk.ac.ebi.www.picr.AccessionMappingService;\r
+\r
+public class AccessionMapperServiceLocator extends org.apache.axis.client.Service implements uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperService {\r
+\r
+    public AccessionMapperServiceLocator() {\r
+    }\r
+\r
+\r
+    public AccessionMapperServiceLocator(org.apache.axis.EngineConfiguration config) {\r
+        super(config);\r
+    }\r
+\r
+    // Use to get a proxy class for AccessionMapperPort\r
+    private java.lang.String AccessionMapperPort_address = "http://www.ebi.ac.uk:80/Tools/picr/service";\r
+\r
+    public java.lang.String getAccessionMapperPortAddress() {\r
+        return AccessionMapperPort_address;\r
+    }\r
+\r
+    // The WSDD service name defaults to the port name.\r
+    private java.lang.String AccessionMapperPortWSDDServiceName = "AccessionMapperPort";\r
+\r
+    public java.lang.String getAccessionMapperPortWSDDServiceName() {\r
+        return AccessionMapperPortWSDDServiceName;\r
+    }\r
+\r
+    public void setAccessionMapperPortWSDDServiceName(java.lang.String name) {\r
+        AccessionMapperPortWSDDServiceName = name;\r
+    }\r
+\r
+    public uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperInterface getAccessionMapperPort() throws javax.xml.rpc.ServiceException {\r
+       java.net.URL endpoint;\r
+        try {\r
+            endpoint = new java.net.URL(AccessionMapperPort_address);\r
+        }\r
+        catch (java.net.MalformedURLException e) {\r
+            throw new javax.xml.rpc.ServiceException(e);\r
+        }\r
+        return getAccessionMapperPort(endpoint);\r
+    }\r
+\r
+    public uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperInterface getAccessionMapperPort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {\r
+        try {\r
+            uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperBindingStub _stub = new uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperBindingStub(portAddress, this);\r
+            _stub.setPortName(getAccessionMapperPortWSDDServiceName());\r
+            return _stub;\r
+        }\r
+        catch (org.apache.axis.AxisFault e) {\r
+            return null;\r
+        }\r
+    }\r
+\r
+    public void setAccessionMapperPortEndpointAddress(java.lang.String address) {\r
+        AccessionMapperPort_address = address;\r
+    }\r
+\r
+    /**\r
+     * For the given interface, get the stub implementation.\r
+     * If this service has no port for the given interface,\r
+     * then ServiceException is thrown.\r
+     */\r
+    public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {\r
+        try {\r
+            if (uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperInterface.class.isAssignableFrom(serviceEndpointInterface)) {\r
+                uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperBindingStub _stub = new uk.ac.ebi.www.picr.AccessionMappingService.AccessionMapperBindingStub(new java.net.URL(AccessionMapperPort_address), this);\r
+                _stub.setPortName(getAccessionMapperPortWSDDServiceName());\r
+                return _stub;\r
+            }\r
+        }\r
+        catch (java.lang.Throwable t) {\r
+            throw new javax.xml.rpc.ServiceException(t);\r
+        }\r
+        throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));\r
+    }\r
+\r
+    /**\r
+     * For the given interface, get the stub implementation.\r
+     * If this service has no port for the given interface,\r
+     * then ServiceException is thrown.\r
+     */\r
+    public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {\r
+        if (portName == null) {\r
+            return getPort(serviceEndpointInterface);\r
+        }\r
+        java.lang.String inputPortName = portName.getLocalPart();\r
+        if ("AccessionMapperPort".equals(inputPortName)) {\r
+            return getAccessionMapperPort();\r
+        }\r
+        else  {\r
+            java.rmi.Remote _stub = getPort(serviceEndpointInterface);\r
+            ((org.apache.axis.client.Stub) _stub).setPortName(portName);\r
+            return _stub;\r
+        }\r
+    }\r
+\r
+    public javax.xml.namespace.QName getServiceName() {\r
+        return new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "AccessionMapperService");\r
+    }\r
+\r
+    private java.util.HashSet ports = null;\r
+\r
+    public java.util.Iterator getPorts() {\r
+        if (ports == null) {\r
+            ports = new java.util.HashSet();\r
+            ports.add(new javax.xml.namespace.QName("http://www.ebi.ac.uk/picr/AccessionMappingService", "AccessionMapperPort"));\r
+        }\r
+        return ports.iterator();\r
+    }\r
+\r
+    /**\r
+    * Set the endpoint address for the specified port name.\r
+    */\r
+    public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r
+        if ("AccessionMapperPort".equals(portName)) {\r
+            setAccessionMapperPortEndpointAddress(address);\r
+        }\r
+        else { // Unknown Port Name\r
+            throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);\r
+        }\r
+    }\r
+\r
+    /**\r
+    * Set the endpoint address for the specified port name.\r
+    */\r
+    public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r
+        setEndpointAddress(portName.getLocalPart(), address);\r
+    }\r
+\r
+}\r