/* * This class was automatically generated with * Castor 1.1, using an XML * Schema. * $Id$ */ package it.carige.nefin.datadictionary; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ import org.exolab.castor.xml.Marshaller; import org.exolab.castor.xml.Unmarshaller; /** * Class Allegato. * * @version $Revision$ $Date$ */ public class Allegato implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Global Unique Identifier: garanitisce per l' identificazione * dell'allegato */ private java.lang.String _guid; /** * il tipo dell'allegato (es: TIFF, JPG, TXT...) */ private java.lang.String _tipo; /** * rappresentazione binaria del documento */ private byte[] _documento; //----------------/ //- Constructors -/ //----------------/ public Allegato() { super(); } //-----------/ //- Methods -/ //-----------/ /** * Returns the value of field 'documento'. The field * 'documento' has the following description: rappresentazione * binaria del documento * * @return the value of field 'Documento'. */ public byte[] getDocumento( ) { return this._documento; } /** * Returns the value of field 'guid'. The field 'guid' has the * following description: Global Unique Identifier: garanitisce * per l' identificazione dell'allegato * * @return the value of field 'Guid'. */ public java.lang.String getGuid( ) { return this._guid; } /** * Returns the value of field 'tipo'. The field 'tipo' has the * following description: il tipo dell'allegato (es: TIFF, JPG, * TXT...) * * @return the value of field 'Tipo'. */ public java.lang.String getTipo( ) { return this._tipo; } /** * 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); } /** * * * @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 { Marshaller.marshal(this, handler); } /** * Sets the value of field 'documento'. The field 'documento' * has the following description: rappresentazione binaria del * documento * * @param documento the value of field 'documento'. */ public void setDocumento( final byte[] documento) { this._documento = documento; } /** * Sets the value of field 'guid'. The field 'guid' has the * following description: Global Unique Identifier: garanitisce * per l' identificazione dell'allegato * * @param guid the value of field 'guid'. */ public void setGuid( final java.lang.String guid) { this._guid = guid; } /** * Sets the value of field 'tipo'. The field 'tipo' has the * following description: il tipo dell'allegato (es: TIFF, JPG, * TXT...) * * @param tipo the value of field 'tipo'. */ public void setTipo( final java.lang.String tipo) { this._tipo = tipo; } /** * Method unmarshalAllegato. * * @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 * it.carige.nefin.datadictionary.Allegato */ public static it.carige.nefin.datadictionary.Allegato unmarshalAllegato( final java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (it.carige.nefin.datadictionary.Allegato) Unmarshaller.unmarshal(it.carige.nefin.datadictionary.Allegato.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); } }