synchronized with last schema revision.
[vamsas.git] / src / org / vamsas / objects / core / DbRef.java
index c65d466..ad8f79f 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M1</a>, using an XML
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML
  * Schema.
  * $Id$
  */
@@ -38,17 +38,22 @@ implements java.io.Serializable
     /**
      * Field _source
      */
-    private java.lang.Object _source;
+    private java.lang.String _source;
 
     /**
      * Field _version
      */
-    private java.lang.Object _version;
+    private java.lang.String _version;
 
     /**
      * Field _accessionId
      */
-    private java.lang.Object _accessionId;
+    private java.lang.String _accessionId;
+
+    /**
+     * Field _id
+     */
+    private java.lang.String _id;
 
 
       //----------------/
@@ -103,6 +108,13 @@ implements java.io.Serializable
             }
             else if (temp._accessionId != null)
                 return false;
+            if (this._id != null) {
+                if (temp._id == null) return false;
+                else if (!(this._id.equals(temp._id))) 
+                    return false;
+            }
+            else if (temp._id != null)
+                return false;
             return true;
         }
         return false;
@@ -111,35 +123,46 @@ implements java.io.Serializable
     /**
      * Returns the value of field 'accessionId'.
      * 
-     * @return Object
+     * @return String
      * @return the value of field 'accessionId'.
      */
-    public java.lang.Object getAccessionId()
+    public java.lang.String getAccessionId()
     {
         return this._accessionId;
-    } //-- java.lang.Object getAccessionId() 
+    } //-- java.lang.String getAccessionId() 
+
+    /**
+     * Returns the value of field 'id'.
+     * 
+     * @return String
+     * @return the value of field 'id'.
+     */
+    public java.lang.String getId()
+    {
+        return this._id;
+    } //-- java.lang.String getId() 
 
     /**
      * Returns the value of field 'source'.
      * 
-     * @return Object
+     * @return String
      * @return the value of field 'source'.
      */
-    public java.lang.Object getSource()
+    public java.lang.String getSource()
     {
         return this._source;
-    } //-- java.lang.Object getSource() 
+    } //-- java.lang.String getSource() 
 
     /**
      * Returns the value of field 'version'.
      * 
-     * @return Object
+     * @return String
      * @return the value of field 'version'.
      */
-    public java.lang.Object getVersion()
+    public java.lang.String getVersion()
     {
         return this._version;
-    } //-- java.lang.Object getVersion() 
+    } //-- java.lang.String getVersion() 
 
     /**
      * Method isValid
@@ -192,30 +215,40 @@ implements java.io.Serializable
      * 
      * @param accessionId the value of field 'accessionId'.
      */
-    public void setAccessionId(java.lang.Object accessionId)
+    public void setAccessionId(java.lang.String accessionId)
     {
         this._accessionId = accessionId;
-    } //-- void setAccessionId(java.lang.Object) 
+    } //-- void setAccessionId(java.lang.String) 
+
+    /**
+     * Sets the value of field 'id'.
+     * 
+     * @param id the value of field 'id'.
+     */
+    public void setId(java.lang.String id)
+    {
+        this._id = id;
+    } //-- void setId(java.lang.String) 
 
     /**
      * Sets the value of field 'source'.
      * 
      * @param source the value of field 'source'.
      */
-    public void setSource(java.lang.Object source)
+    public void setSource(java.lang.String source)
     {
         this._source = source;
-    } //-- void setSource(java.lang.Object) 
+    } //-- void setSource(java.lang.String) 
 
     /**
      * Sets the value of field 'version'.
      * 
      * @param version the value of field 'version'.
      */
-    public void setVersion(java.lang.Object version)
+    public void setVersion(java.lang.String version)
     {
         this._version = version;
-    } //-- void setVersion(java.lang.Object) 
+    } //-- void setVersion(java.lang.String) 
 
     /**
      * Method unmarshal