- \r
- Marshaller.marshal(this, handler);\r
- } //-- void marshal(org.xml.sax.ContentHandler) \r
-\r
- /**\r
- * Method unmarshal\r
- * \r
- * \r
- * \r
- * @param reader\r
- * @return Object\r
- */\r
- public static java.lang.Object unmarshal(java.io.Reader reader)\r
- throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+ return false;\r
+ }\r
+ return true;\r
+ } //-- boolean isValid()\r
+\r
+ /**\r
+ * Method marshal\r
+ *\r
+ *\r
+ *\r
+ * @param out\r
+ */\r
+ public void marshal(java.io.Writer out)\r
+ throws org.exolab.castor.xml.MarshalException,\r
+ org.exolab.castor.xml.ValidationException\r
+ {\r
+\r
+ Marshaller.marshal(this, out);\r
+ } //-- void marshal(java.io.Writer)\r
+\r
+ /**\r
+ * Method marshal\r
+ *\r
+ *\r
+ *\r
+ * @param handler\r
+ */\r
+ public void marshal(org.xml.sax.ContentHandler handler)\r
+ throws java.io.IOException, org.exolab.castor.xml.MarshalException,\r
+ org.exolab.castor.xml.ValidationException\r
+ {\r
+\r
+ Marshaller.marshal(this, handler);\r
+ } //-- void marshal(org.xml.sax.ContentHandler)\r
+\r
+ /**\r
+ * Method removeAllDBRef\r
+ *\r
+ */\r
+ public void removeAllDBRef()\r
+ {\r
+ _DBRefList.removeAllElements();\r
+ } //-- void removeAllDBRef()\r
+\r
+ /**\r
+ * Method removeDBRef\r
+ *\r
+ *\r
+ *\r
+ * @param index\r
+ * @return DBRef\r
+ */\r
+ public jalview.schemabinding.version2.DBRef removeDBRef(int index)\r
+ {\r
+ java.lang.Object obj = _DBRefList.elementAt(index);\r
+ _DBRefList.removeElementAt(index);\r
+ return (jalview.schemabinding.version2.DBRef) obj;\r
+ } //-- jalview.schemabinding.version2.DBRef removeDBRef(int)\r
+\r
+ /**\r
+ * Method setDBRef\r
+ *\r
+ *\r
+ *\r
+ * @param index\r
+ * @param vDBRef\r
+ */\r
+ public void setDBRef(int index, jalview.schemabinding.version2.DBRef vDBRef)\r
+ throws java.lang.IndexOutOfBoundsException\r
+ {\r
+ //-- check bounds for index\r
+ if ( (index < 0) || (index > _DBRefList.size()))\r