JAL-1432 updated copyright notices
[jalview.git] / src / jalview / binding / JalviewUserColours.java
old mode 100755 (executable)
new mode 100644 (file)
index 822392e..deb5bc7
@@ -1,26 +1,26 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
- * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
+ * Copyright (C) 2014 The Jalview Authors
  * 
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
+ * This file is part of Jalview.
  * 
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License 
+ * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+ *  
+ * Jalview is distributed in the hope that it will be useful, but 
+ * WITHOUT ANY WARRANTY; without even the implied warranty 
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+ * PURPOSE.  See the GNU General Public License for more details.
  * 
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+ * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
  */
 package jalview.binding;
 
-// ---------------------------------/
-// - Imported classes and packages -/
-// ---------------------------------/
+//---------------------------------/
+//- Imported classes and packages -/
+//---------------------------------/
 
 import org.exolab.castor.xml.Marshaller;
 import org.exolab.castor.xml.Unmarshaller;
@@ -43,6 +43,12 @@ public class JalviewUserColours implements java.io.Serializable
   private java.lang.String _schemeName;
 
   /**
+   * Jalview colour scheme document version.
+   * 
+   */
+  private java.lang.String _version;
+
+  /**
    * Field _colourList.
    */
   private java.util.Vector _colourList;
@@ -66,7 +72,7 @@ public class JalviewUserColours implements java.io.Serializable
    * 
    * @param vColour
    * @throws java.lang.IndexOutOfBoundsException
-   *                 if the index given is outside the bounds of the collection
+   *           if the index given is outside the bounds of the collection
    */
   public void addColour(final Colour vColour)
           throws java.lang.IndexOutOfBoundsException
@@ -80,7 +86,7 @@ public class JalviewUserColours implements java.io.Serializable
    * @param index
    * @param vColour
    * @throws java.lang.IndexOutOfBoundsException
-   *                 if the index given is outside the bounds of the collection
+   *           if the index given is outside the bounds of the collection
    */
   public void addColour(final int index, final Colour vColour)
           throws java.lang.IndexOutOfBoundsException
@@ -103,7 +109,7 @@ public class JalviewUserColours implements java.io.Serializable
    * 
    * @param index
    * @throws java.lang.IndexOutOfBoundsException
-   *                 if the index given is outside the bounds of the collection
+   *           if the index given is outside the bounds of the collection
    * @return the value of the Colour at the given index
    */
   public Colour getColour(final int index)
@@ -156,6 +162,18 @@ public class JalviewUserColours implements java.io.Serializable
   }
 
   /**
+   * Returns the value of field 'version'. The field 'version' has the following
+   * description: Jalview colour scheme document version.
+   * 
+   * 
+   * @return the value of field 'Version'.
+   */
+  public java.lang.String getVersion()
+  {
+    return this._version;
+  }
+
+  /**
    * Method isValid.
    * 
    * @return true if this object is valid according to the schema
@@ -177,11 +195,10 @@ public class JalviewUserColours implements java.io.Serializable
    * 
    * @param out
    * @throws org.exolab.castor.xml.MarshalException
-   *                 if object is null or if any SAXException is thrown during
-   *                 marshaling
+   *           if object is null or if any SAXException is thrown during
+   *           marshaling
    * @throws org.exolab.castor.xml.ValidationException
-   *                 if this object is an invalid instance according to the
-   *                 schema
+   *           if this object is an invalid instance according to the schema
    */
   public void marshal(final java.io.Writer out)
           throws org.exolab.castor.xml.MarshalException,
@@ -195,13 +212,12 @@ public class JalviewUserColours implements java.io.Serializable
    * 
    * @param handler
    * @throws java.io.IOException
-   *                 if an IOException occurs during marshaling
+   *           if an IOException occurs during marshaling
    * @throws org.exolab.castor.xml.ValidationException
-   *                 if this object is an invalid instance according to the
-   *                 schema
+   *           if this object is an invalid instance according to the schema
    * @throws org.exolab.castor.xml.MarshalException
-   *                 if object is null or if any SAXException is thrown during
-   *                 marshaling
+   *           if object is null or if any SAXException is thrown during
+   *           marshaling
    */
   public void marshal(final org.xml.sax.ContentHandler handler)
           throws java.io.IOException,
@@ -212,7 +228,7 @@ public class JalviewUserColours implements java.io.Serializable
   }
 
   /**
-   */
+     */
   public void removeAllColour()
   {
     this._colourList.clear();
@@ -248,7 +264,7 @@ public class JalviewUserColours implements java.io.Serializable
    * @param index
    * @param vColour
    * @throws java.lang.IndexOutOfBoundsException
-   *                 if the index given is outside the bounds of the collection
+   *           if the index given is outside the bounds of the collection
    */
   public void setColour(final int index, final Colour vColour)
           throws java.lang.IndexOutOfBoundsException
@@ -284,7 +300,7 @@ public class JalviewUserColours implements java.io.Serializable
    * Sets the value of field 'schemeName'.
    * 
    * @param schemeName
-   *                the value of field 'schemeName'.
+   *          the value of field 'schemeName'.
    */
   public void setSchemeName(final java.lang.String schemeName)
   {
@@ -292,15 +308,27 @@ public class JalviewUserColours implements java.io.Serializable
   }
 
   /**
+   * Sets the value of field 'version'. The field 'version' has the following
+   * description: Jalview colour scheme document version.
+   * 
+   * 
+   * @param version
+   *          the value of field 'version'.
+   */
+  public void setVersion(final java.lang.String version)
+  {
+    this._version = version;
+  }
+
+  /**
    * Method unmarshal.
    * 
    * @param reader
    * @throws org.exolab.castor.xml.MarshalException
-   *                 if object is null or if any SAXException is thrown during
-   *                 marshaling
+   *           if object is null or if any SAXException is thrown during
+   *           marshaling
    * @throws org.exolab.castor.xml.ValidationException
-   *                 if this object is an invalid instance according to the
-   *                 schema
+   *           if this object is an invalid instance according to the schema
    * @return the unmarshaled jalview.binding.JalviewUserColours
    */
   public static jalview.binding.JalviewUserColours unmarshal(
@@ -316,8 +344,7 @@ public class JalviewUserColours implements java.io.Serializable
    * 
    * 
    * @throws org.exolab.castor.xml.ValidationException
-   *                 if this object is an invalid instance according to the
-   *                 schema
+   *           if this object is an invalid instance according to the schema
    */
   public void validate() throws org.exolab.castor.xml.ValidationException
   {