/** * Documento.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package br.gov.mc.sei.entidade; public class Documento implements java.io.Serializable { private java.lang.String tipo; private java.lang.String idProcedimento; private java.lang.String idSerie; private java.lang.String numero; private java.lang.String data; private java.lang.String descricao; private br.gov.mc.sei.entidade.Remetente remetente; private br.gov.mc.sei.entidade.Interessado[] interessados; private br.gov.mc.sei.entidade.Destinatario[] destinatarios; private java.lang.String observacao; private java.lang.String nomeArquivo; private java.lang.String conteudo; private byte[] conteudoMTOM; private java.lang.String nivelAcesso; public Documento() { } public Documento( java.lang.String tipo, java.lang.String idProcedimento, java.lang.String idSerie, java.lang.String numero, java.lang.String data, java.lang.String descricao, br.gov.mc.sei.entidade.Remetente remetente, br.gov.mc.sei.entidade.Interessado[] interessados, br.gov.mc.sei.entidade.Destinatario[] destinatarios, java.lang.String observacao, java.lang.String nomeArquivo, java.lang.String conteudo, byte[] conteudoMTOM, java.lang.String nivelAcesso) { this.tipo = tipo; this.idProcedimento = idProcedimento; this.idSerie = idSerie; this.numero = numero; this.data = data; this.descricao = descricao; this.remetente = remetente; this.interessados = interessados; this.destinatarios = destinatarios; this.observacao = observacao; this.nomeArquivo = nomeArquivo; this.conteudo = conteudo; this.conteudoMTOM = conteudoMTOM; this.nivelAcesso = nivelAcesso; } /** * Gets the tipo value for this Documento. * * @return tipo */ public java.lang.String getTipo() { return tipo; } /** * Sets the tipo value for this Documento. * * @param tipo */ public void setTipo(java.lang.String tipo) { this.tipo = tipo; } /** * Gets the idProcedimento value for this Documento. * * @return idProcedimento */ public java.lang.String getIdProcedimento() { return idProcedimento; } /** * Sets the idProcedimento value for this Documento. * * @param idProcedimento */ public void setIdProcedimento(java.lang.String idProcedimento) { this.idProcedimento = idProcedimento; } /** * Gets the idSerie value for this Documento. * * @return idSerie */ public java.lang.String getIdSerie() { return idSerie; } /** * Sets the idSerie value for this Documento. * * @param idSerie */ public void setIdSerie(java.lang.String idSerie) { this.idSerie = idSerie; } /** * Gets the numero value for this Documento. * * @return numero */ public java.lang.String getNumero() { return numero; } /** * Sets the numero value for this Documento. * * @param numero */ public void setNumero(java.lang.String numero) { this.numero = numero; } /** * Gets the data value for this Documento. * * @return data */ public java.lang.String getData() { return data; } /** * Sets the data value for this Documento. * * @param data */ public void setData(java.lang.String data) { this.data = data; } /** * Gets the descricao value for this Documento. * * @return descricao */ public java.lang.String getDescricao() { return descricao; } /** * Sets the descricao value for this Documento. * * @param descricao */ public void setDescricao(java.lang.String descricao) { this.descricao = descricao; } /** * Gets the remetente value for this Documento. * * @return remetente */ public br.gov.mc.sei.entidade.Remetente getRemetente() { return remetente; } /** * Sets the remetente value for this Documento. * * @param remetente */ public void setRemetente(br.gov.mc.sei.entidade.Remetente remetente) { this.remetente = remetente; } /** * Gets the interessados value for this Documento. * * @return interessados */ public br.gov.mc.sei.entidade.Interessado[] getInteressados() { return interessados; } /** * Sets the interessados value for this Documento. * * @param interessados */ public void setInteressados(br.gov.mc.sei.entidade.Interessado[] interessados) { this.interessados = interessados; } /** * Gets the destinatarios value for this Documento. * * @return destinatarios */ public br.gov.mc.sei.entidade.Destinatario[] getDestinatarios() { return destinatarios; } /** * Sets the destinatarios value for this Documento. * * @param destinatarios */ public void setDestinatarios(br.gov.mc.sei.entidade.Destinatario[] destinatarios) { this.destinatarios = destinatarios; } /** * Gets the observacao value for this Documento. * * @return observacao */ public java.lang.String getObservacao() { return observacao; } /** * Sets the observacao value for this Documento. * * @param observacao */ public void setObservacao(java.lang.String observacao) { this.observacao = observacao; } /** * Gets the nomeArquivo value for this Documento. * * @return nomeArquivo */ public java.lang.String getNomeArquivo() { return nomeArquivo; } /** * Sets the nomeArquivo value for this Documento. * * @param nomeArquivo */ public void setNomeArquivo(java.lang.String nomeArquivo) { this.nomeArquivo = nomeArquivo; } /** * Gets the conteudo value for this Documento. * * @return conteudo */ public java.lang.String getConteudo() { return conteudo; } /** * Sets the conteudo value for this Documento. * * @param conteudo */ public void setConteudo(java.lang.String conteudo) { this.conteudo = conteudo; } /** * Gets the conteudoMTOM value for this Documento. * * @return conteudoMTOM */ public byte[] getConteudoMTOM() { return conteudoMTOM; } /** * Sets the conteudoMTOM value for this Documento. * * @param conteudoMTOM */ public void setConteudoMTOM(byte[] conteudoMTOM) { this.conteudoMTOM = conteudoMTOM; } /** * Gets the nivelAcesso value for this Documento. * * @return nivelAcesso */ public java.lang.String getNivelAcesso() { return nivelAcesso; } /** * Sets the nivelAcesso value for this Documento. * * @param nivelAcesso */ public void setNivelAcesso(java.lang.String nivelAcesso) { this.nivelAcesso = nivelAcesso; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof Documento)) return false; Documento other = (Documento) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.tipo==null && other.getTipo()==null) || (this.tipo!=null && this.tipo.equals(other.getTipo()))) && ((this.idProcedimento==null && other.getIdProcedimento()==null) || (this.idProcedimento!=null && this.idProcedimento.equals(other.getIdProcedimento()))) && ((this.idSerie==null && other.getIdSerie()==null) || (this.idSerie!=null && this.idSerie.equals(other.getIdSerie()))) && ((this.numero==null && other.getNumero()==null) || (this.numero!=null && this.numero.equals(other.getNumero()))) && ((this.data==null && other.getData()==null) || (this.data!=null && this.data.equals(other.getData()))) && ((this.descricao==null && other.getDescricao()==null) || (this.descricao!=null && this.descricao.equals(other.getDescricao()))) && ((this.remetente==null && other.getRemetente()==null) || (this.remetente!=null && this.remetente.equals(other.getRemetente()))) && ((this.interessados==null && other.getInteressados()==null) || (this.interessados!=null && java.util.Arrays.equals(this.interessados, other.getInteressados()))) && ((this.destinatarios==null && other.getDestinatarios()==null) || (this.destinatarios!=null && java.util.Arrays.equals(this.destinatarios, other.getDestinatarios()))) && ((this.observacao==null && other.getObservacao()==null) || (this.observacao!=null && this.observacao.equals(other.getObservacao()))) && ((this.nomeArquivo==null && other.getNomeArquivo()==null) || (this.nomeArquivo!=null && this.nomeArquivo.equals(other.getNomeArquivo()))) && ((this.conteudo==null && other.getConteudo()==null) || (this.conteudo!=null && this.conteudo.equals(other.getConteudo()))) && ((this.conteudoMTOM==null && other.getConteudoMTOM()==null) || (this.conteudoMTOM!=null && java.util.Arrays.equals(this.conteudoMTOM, other.getConteudoMTOM()))) && ((this.nivelAcesso==null && other.getNivelAcesso()==null) || (this.nivelAcesso!=null && this.nivelAcesso.equals(other.getNivelAcesso()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getTipo() != null) { _hashCode += getTipo().hashCode(); } if (getIdProcedimento() != null) { _hashCode += getIdProcedimento().hashCode(); } if (getIdSerie() != null) { _hashCode += getIdSerie().hashCode(); } if (getNumero() != null) { _hashCode += getNumero().hashCode(); } if (getData() != null) { _hashCode += getData().hashCode(); } if (getDescricao() != null) { _hashCode += getDescricao().hashCode(); } if (getRemetente() != null) { _hashCode += getRemetente().hashCode(); } if (getInteressados() != null) { for (int i=0; i