/* * This class was automatically generated with * <a href="http://www.castor.org">Castor 1.3.1</a>, using an XML * Schema. * $Id$ */ package es.alvsanand.webpage.model.bulkUpload; /** * Class ArticleType. * * @version $Revision$ $Date$ */ public class ArticleType implements java.io.Serializable { /** * */ private static final long serialVersionUID = -1044937807905725230L; //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Field _title. */ private java.lang.String _title; /** * Field _name. */ private java.lang.String _name; /** * Field _date. */ private java.util.Date _date; /** * Field _data. */ private java.lang.String _data; //----------------/ //- Constructors -/ //----------------/ public ArticleType() { super(); } //-----------/ //- Methods -/ //-----------/ /** * Returns the value of field 'data'. * * @return the value of field 'Data'. */ public java.lang.String getData( ) { return this._data; } /** * Returns the value of field 'date'. * * @return the value of field 'Date'. */ public java.util.Date getDate( ) { return this._date; } /** * Returns the value of field 'name'. * * @return the value of field 'Name'. */ public java.lang.String getName( ) { return this._name; } /** * Returns the value of field 'title'. * * @return the value of field 'Title'. */ public java.lang.String getTitle( ) { return this._title; } /** * 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 { org.exolab.castor.xml.Marshaller.marshal(this, out); } /** * * * @param handler * @throws java.io.IOException if an IOException occurs during * marshaling * @throws org.exolab.castor.xml.ValidationException 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 */ public void marshal( final org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { org.exolab.castor.xml.Marshaller.marshal(this, handler); } /** * Sets the value of field 'data'. * * @param data the value of field 'data'. */ public void setData( final java.lang.String data) { this._data = data; } /** * Sets the value of field 'date'. * * @param date the value of field 'date'. */ public void setDate( final java.util.Date date) { this._date = date; } /** * Sets the value of field 'name'. * * @param name the value of field 'name'. */ public void setName( final java.lang.String name) { this._name = name; } /** * Sets the value of field 'title'. * * @param title the value of field 'title'. */ public void setTitle( final java.lang.String title) { this._title = title; } /** * Method unmarshal. * * @param reader * @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 * @return the unmarshaled * es.alvsanand.webpage.model.bulkUpload.ArticleType */ public static es.alvsanand.webpage.model.bulkUpload.ArticleType unmarshal( final java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (es.alvsanand.webpage.model.bulkUpload.ArticleType) org.exolab.castor.xml.Unmarshaller.unmarshal(es.alvsanand.webpage.model.bulkUpload.ArticleType.class, reader); } /** * * * @throws org.exolab.castor.xml.ValidationException if this * object is an invalid instance according to the schema */ public void validate( ) throws org.exolab.castor.xml.ValidationException { org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); validator.validate(this); } }