+ return true;\r
+ }\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @param out\r
+ * @throws org.exolab.castor.xml.MarshalException\r
+ * if object is null or if any SAXException is thrown during\r
+ * marshaling\r
+ * @throws org.exolab.castor.xml.ValidationException\r
+ * if this object is an invalid instance according to the schema\r
+ */\r
+ public void marshal(final java.io.Writer out)\r
+ throws org.exolab.castor.xml.MarshalException,\r
+ org.exolab.castor.xml.ValidationException {\r
+ Marshaller.marshal(this, out);\r
+ }\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @param handler\r
+ * @throws java.io.IOException\r
+ * if an IOException occurs during marshaling\r
+ * @throws org.exolab.castor.xml.ValidationException\r
+ * if this object is an invalid instance according to the schema\r
+ * @throws org.exolab.castor.xml.MarshalException\r
+ * if object is null or if any SAXException is thrown during\r
+ * marshaling\r
+ */\r
+ public void marshal(final org.xml.sax.ContentHandler handler)\r
+ throws java.io.IOException, org.exolab.castor.xml.MarshalException,\r
+ org.exolab.castor.xml.ValidationException {\r
+ Marshaller.marshal(this, handler);\r
+ }\r
+\r
+ /**\r
+ * Sets the value of field 'compressed'. The field 'compressed' has the\r
+ * following description: true implies data will be decompresses with Zip\r
+ * before presenting to application\r
+ * \r
+ * @param compressed\r
+ * the value of field 'compressed'.\r
+ */\r
+ public void setCompressed(final boolean compressed) {\r
+ this._compressed = compressed;\r
+ this._has_compressed = true;\r
+ }\r
+\r
+ /**\r
+ * Sets the value of field 'id'. The field 'id' has the following description:\r
+ * Primary Key for vamsas object referencing\r
+ * \r
+ * \r
+ * @param id\r
+ * the value of field 'id'.\r
+ */\r
+ public void setId(final java.lang.String id) {\r
+ this._id = id;\r
+ }\r
+\r
+ /**\r
+ * Sets the value of field 'objectref'. The field 'objectref' has the\r
+ * following description: Object the arbitrary data is associated with\r
+ * \r
+ * \r
+ * @param objectref\r
+ * the value of field 'objectref'.\r
+ */\r
+ public void setObjectref(final java.lang.Object objectref) {\r
+ this._objectref = objectref;\r
+ }\r
+\r
+ /**\r
+ * Sets the value of field 'type'. The field 'type' has the following\r
+ * description: Type of arbitrary data - TODO: decide format - use (extended)\r
+ * MIME types ?\r
+ * \r
+ * @param type\r
+ * the value of field 'type'.\r
+ */\r
+ public void setType(final java.lang.String type) {\r
+ this._type = type;\r
+ }\r
+\r
+ /**\r
+ * Method unmarshal.\r
+ * \r
+ * @param reader\r
+ * @throws org.exolab.castor.xml.MarshalException\r
+ * if object is null or if any SAXException is thrown during\r
+ * marshaling\r
+ * @throws org.exolab.castor.xml.ValidationException\r
+ * if this object is an invalid instance according to the schema\r
+ * @return the unmarshaled uk.ac.vamsas.objects.core.AppData\r
+ */\r
+ public static uk.ac.vamsas.objects.core.AppData unmarshal(\r
+ final java.io.Reader reader)\r
+ throws org.exolab.castor.xml.MarshalException,\r
+ org.exolab.castor.xml.ValidationException {\r
+ return (uk.ac.vamsas.objects.core.AppData) Unmarshaller.unmarshal(\r
+ uk.ac.vamsas.objects.core.Attachment.class, reader);\r
+ }\r
+\r
+ /**\r
+ * \r
+ * \r
+ * @throws org.exolab.castor.xml.ValidationException\r
+ * if this object is an invalid instance according to the schema\r
+ */\r
+ public void validate() throws org.exolab.castor.xml.ValidationException {\r
+ org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+ validator.validate(this);\r
+ }\r