/* * This class was automatically generated with * <a href="http://www.castor.org">Castor 0.9.5.4</a>, using an XML * Schema. * $Id: LIUtskra.java,v 1.1 2005/03/15 11:35:08 birna Exp $ */ package is.idega.block.finance.business.li.sign_out; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ import java.io.IOException; import org.exolab.castor.xml.MarshalException; import org.exolab.castor.xml.Marshaller; import org.exolab.castor.xml.Unmarshaller; import org.exolab.castor.xml.ValidationException; /** * Class LIUtskra. * * @version $Revision: 1.1 $ $Date: 2005/03/15 11:35:08 $ */ public class LIUtskra implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Field _version */ private java.math.BigDecimal _version; /** * Field _seta */ private java.lang.String _seta; //----------------/ //- Constructors -/ //----------------/ public LIUtskra() { super(); } //-- is.idega.block.finance.business.li.sign_out.LIUtskra() //-----------/ //- Methods -/ //-----------/ /** * Returns the value of field 'seta'. * * @return String * @return the value of field 'seta'. */ public java.lang.String getSeta() { return this._seta; } //-- java.lang.String getSeta() /** * Returns the value of field 'version'. * * @return BigDecimal * @return the value of field 'version'. */ public java.math.BigDecimal getVersion() { return this._version; } //-- java.math.BigDecimal getVersion() /** * Method isValid * * * * @return boolean */ public boolean isValid() { try { validate(); } catch (org.exolab.castor.xml.ValidationException vex) { return false; } return true; } //-- boolean isValid() /** * Method marshal * * * * @param out */ public void marshal(java.io.Writer out, String noNamespaceSchemaLocation) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { try { Marshaller marshaller = new Marshaller(out); marshaller.setNoNamespaceSchemaLocation(noNamespaceSchemaLocation); marshaller.setSuppressXSIType(true); marshaller.marshal(this); } catch (MarshalException e) { e.printStackTrace(); } catch (ValidationException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } //-- void marshal(java.io.Writer) /** * Method marshal * * * * @param handler */ public void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, handler); } //-- void marshal(org.xml.sax.ContentHandler) /** * Sets the value of field 'seta'. * * @param seta the value of field 'seta'. */ public void setSeta(java.lang.String seta) { this._seta = seta; } //-- void setSeta(java.lang.String) /** * Sets the value of field 'version'. * * @param version the value of field 'version'. */ public void setVersion(java.math.BigDecimal version) { this._version = version; } //-- void setVersion(java.math.BigDecimal) /** * Method unmarshal * * * * @param reader * @return Object */ public static java.lang.Object unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (is.idega.block.finance.business.li.sign_out.LIUtskra) Unmarshaller.unmarshal(is.idega.block.finance.business.li.sign_out.LIUtskra.class, reader); } //-- java.lang.Object unmarshal(java.io.Reader) /** * Method validate * */ public void validate() throws org.exolab.castor.xml.ValidationException { org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); validator.validate(this); } //-- void validate() }