-public class WebServiceParameterSet implements java.io.Serializable
-{
-
- // --------------------------/
- // - Class/Member Variables -/
- // --------------------------/
-
- /**
- * The short name for the parameter set. This will be shown amongst the other
- * presets for the web service.
- *
- */
- private java.lang.String _name;
-
- /**
- * A Jalview Web Service Parameter Set container version number. Version 1
- * created for storing Jaba user presets.
- *
- */
- private java.lang.String _version;
-
- /**
- * Short description - as utf8 encoded text. This is usually displayed in the
- * body of an HTML capable tooltip, so HTML tags may be embedded using
- * standard UTF8 encoding.
- *
- */
- private java.lang.String _description;
-
- /**
- * URL for which the parameter set is valid. Jalview will use it to match up
- * parameter sets to service instances that can parse the parameter set
- * payload.
- *
- */
- private java.util.Vector _serviceURLList;
-
- /**
- * UTF8 encoded string to be processed into a specific web services' parameter
- * set. Note - newlines may be important to the structure of this file.
- *
- */
- private java.lang.String _parameters;
-
- // ----------------/
- // - Constructors -/
- // ----------------/
-
- public WebServiceParameterSet()
- {
- super();
- this._serviceURLList = new java.util.Vector();
- }
-
- // -----------/
- // - Methods -/
- // -----------/
-
- /**
- *
- *
- * @param vServiceURL
- * @throws java.lang.IndexOutOfBoundsException
- * if the index given is outside the bounds of the collection
- */
- public void addServiceURL(final java.lang.String vServiceURL)
- throws java.lang.IndexOutOfBoundsException
- {
- this._serviceURLList.addElement(vServiceURL);
- }
-
- /**
- *
- *
- * @param index
- * @param vServiceURL
- * @throws java.lang.IndexOutOfBoundsException
- * if the index given is outside the bounds of the collection
- */
- public void addServiceURL(final int index,
- final java.lang.String vServiceURL)
- throws java.lang.IndexOutOfBoundsException
- {
- this._serviceURLList.add(index, vServiceURL);
- }
-
- /**
- * Method enumerateServiceURL.
- *
- * @return an Enumeration over all java.lang.String elements
- */
- public java.util.Enumeration enumerateServiceURL()
- {
- return this._serviceURLList.elements();
- }
-
- /**
- * Returns the value of field 'description'. The field 'description' has the
- * following description: Short description - as utf8 encoded text. This is
- * usually displayed in the body of an HTML capable tooltip, so HTML tags may
- * be embedded using standard UTF8 encoding.
- *
- *
- * @return the value of field 'Description'.
- */
- public java.lang.String getDescription()
- {
- return this._description;
- }
-
- /**
- * Returns the value of field 'name'. The field 'name' has the following
- * description: The short name for the parameter set. This will be shown
- * amongst the other presets for the web service.
- *
- *
- * @return the value of field 'Name'.
- */
- public java.lang.String getName()
- {
- return this._name;
- }
-
- /**
- * Returns the value of field 'parameters'. The field 'parameters' has the
- * following description: UTF8 encoded string to be processed into a specific
- * web services' parameter set. Note - newlines may be important to the
- * structure of this file.
- *
- *
- * @return the value of field 'Parameters'.
- */
- public java.lang.String getParameters()
- {
- return this._parameters;
- }
-
- /**
- * Method getServiceURL.
- *
- * @param index
- * @throws java.lang.IndexOutOfBoundsException
- * if the index given is outside the bounds of the collection
- * @return the value of the java.lang.String at the given index
- */
- public java.lang.String getServiceURL(final int index)
- throws java.lang.IndexOutOfBoundsException
- {
- // check bounds for index
- if (index < 0 || index >= this._serviceURLList.size())
- {
- throw new IndexOutOfBoundsException(MessageManager.formatMessage("exception.index_value_not_in_range", new String[]{
- "getServiceURL",
- Integer.valueOf(index).toString(),
- Integer.valueOf((this._serviceURLList.size() - 1)).toString()
- }));
+public class WebServiceParameterSet implements java.io.Serializable {
+
+
+ //--------------------------/
+ //- Class/Member Variables -/
+ //--------------------------/
+
+ /**
+ * The short name for the parameter set. This will be shown
+ * amongst the
+ * other presets for the web service.
+ *
+ */
+ private java.lang.String _name;
+
+ /**
+ * A Jalview Web Service Parameter Set container
+ * version number.
+ * Version 1 created for storing Jaba user presets.
+ *
+ */
+ private java.lang.String _version;
+
+ /**
+ * Short description - as utf8 encoded text. This is
+ * usually displayed
+ * in the body of an HTML capable tooltip, so HTML tags may be
+ * embedded
+ * using standard UTF8 encoding.
+ *
+ */
+ private java.lang.String _description;
+
+ /**
+ * URL for which the parameter set is valid. Jalview will use
+ * it to
+ * match up parameter sets to service instances that can parse
+ * the
+ * parameter set payload.
+ *
+ */
+ private java.util.Vector _serviceURLList;
+
+ /**
+ * UTF8 encoded string to be processed into a specific web
+ * services'
+ * parameter set. Note - newlines may be important to the
+ * structure
+ * of this file.
+ *
+ */
+ private java.lang.String _parameters;
+
+
+ //----------------/
+ //- Constructors -/
+ //----------------/
+
+ public WebServiceParameterSet() {
+ super();
+ this._serviceURLList = new java.util.Vector();
+ }
+
+
+ //-----------/
+ //- Methods -/
+ //-----------/
+
+ /**
+ *
+ *
+ * @param vServiceURL
+ * @throws java.lang.IndexOutOfBoundsException if the index
+ * given is outside the bounds of the collection
+ */
+ public void addServiceURL(
+ final java.lang.String vServiceURL)
+ throws java.lang.IndexOutOfBoundsException {
+ this._serviceURLList.addElement(vServiceURL);
+ }
+
+ /**
+ *
+ *
+ * @param index
+ * @param vServiceURL
+ * @throws java.lang.IndexOutOfBoundsException if the index
+ * given is outside the bounds of the collection
+ */
+ public void addServiceURL(
+ final int index,
+ final java.lang.String vServiceURL)
+ throws java.lang.IndexOutOfBoundsException {
+ this._serviceURLList.add(index, vServiceURL);
+ }
+
+ /**
+ * Method enumerateServiceURL.
+ *
+ * @return an Enumeration over all java.lang.String elements
+ */
+ public java.util.Enumeration enumerateServiceURL(
+ ) {
+ return this._serviceURLList.elements();
+ }
+
+ /**
+ * Returns the value of field 'description'. The field
+ * 'description' has the following description: Short
+ * description - as utf8 encoded text. This is
+ * usually displayed
+ * in the body of an HTML capable tooltip, so HTML tags may be
+ * embedded
+ * using standard UTF8 encoding.
+ *
+ *
+ * @return the value of field 'Description'.
+ */
+ public java.lang.String getDescription(
+ ) {
+ return this._description;
+ }
+
+ /**
+ * Returns the value of field 'name'. The field 'name' has the
+ * following description: The short name for the parameter set.
+ * This will be shown amongst the
+ * other presets for the web service.
+ *
+ *
+ * @return the value of field 'Name'.
+ */
+ public java.lang.String getName(
+ ) {
+ return this._name;
+ }
+
+ /**
+ * Returns the value of field 'parameters'. The field
+ * 'parameters' has the following description: UTF8 encoded
+ * string to be processed into a specific web services'
+ * parameter set. Note - newlines may be important to the
+ * structure
+ * of this file.
+ *
+ *
+ * @return the value of field 'Parameters'.
+ */
+ public java.lang.String getParameters(
+ ) {
+ return this._parameters;
+ }
+
+ /**
+ * Method getServiceURL.
+ *
+ * @param index
+ * @throws java.lang.IndexOutOfBoundsException if the index
+ * given is outside the bounds of the collection
+ * @return the value of the java.lang.String at the given index
+ */
+ public java.lang.String getServiceURL(
+ final int index)
+ throws java.lang.IndexOutOfBoundsException {
+ // check bounds for index
+ if (index < 0 || index >= this._serviceURLList.size()) {
+ throw new IndexOutOfBoundsException("getServiceURL: Index value '" + index + "' not in range [0.." + (this._serviceURLList.size() - 1) + "]");
+ }
+
+ return (java.lang.String) _serviceURLList.get(index);
+ }
+
+ /**
+ * Method getServiceURL.Returns the contents of the collection
+ * in an Array. <p>Note: Just in case the collection contents
+ * are changing in another thread, we pass a 0-length Array of
+ * the correct type into the API call. This way we <i>know</i>
+ * that the Array returned is of exactly the correct length.
+ *
+ * @return this collection as an Array
+ */
+ public java.lang.String[] getServiceURL(
+ ) {
+ java.lang.String[] array = new java.lang.String[0];
+ return (java.lang.String[]) this._serviceURLList.toArray(array);
+ }
+
+ /**
+ * Method getServiceURLCount.
+ *
+ * @return the size of this collection
+ */
+ public int getServiceURLCount(
+ ) {
+ return this._serviceURLList.size();
+ }
+
+ /**
+ * Returns the value of field 'version'. The field 'version'
+ * has the following description: A Jalview Web Service
+ * Parameter Set container
+ * version number.
+ * Version 1 created for storing Jaba user presets.
+ *
+ *
+ * @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
+ */
+ public boolean isValid(
+ ) {
+ try {
+ validate();
+ } catch (org.exolab.castor.xml.ValidationException vex) {
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ *
+ *
+ * @param out
+ * @throws org.exolab.castor.xml.MarshalException 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
+ */
+ public void marshal(
+ final java.io.Writer out)
+ throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
+ Marshaller.marshal(this, out);