View Javadoc

1   /*
2    * Criado em 17/04/2008
3    *
4    */
5   package ecar.taglib.util;
6   
7   import java.util.ArrayList;
8   import java.util.Collection;
9   import java.util.Iterator;
10  import java.util.List;
11  
12  import javax.servlet.jsp.JspException;
13  import javax.servlet.jsp.JspWriter;
14  import javax.servlet.jsp.PageContext;
15  import javax.servlet.jsp.tagext.Tag;
16  
17  import org.apache.log4j.Logger;
18  
19  import comum.util.Util;
20  
21  import ecar.dao.SisGrupoAtributoDao;
22  import ecar.pojo.EstrutTpFuncAcmpEtttfa;
23  import ecar.pojo.ObjetoEstrutura;
24  import ecar.pojo.SisGrupoAtributoSga;
25  
26  /**
27   * Taglib para gerar as rotinas de validação dos campos da tela de filtros dinâmicos.<br>
28   * Permite validações específicas para cada campo que devem ser implementadas nos métodos geraValidacaoxxxxxxx<br>
29   * 
30   * @author Milton Pereira
31   */
32  public class ValidacaoEstruturaAtributoFiltroTag implements Tag{
33      private Collection atributos;
34  
35      private Collection sisGrupoAtributoSgaObrigatorio;
36      
37      private PageContext page = null;
38      
39      private StringBuffer validacaoCampos;
40      
41      private StringBuffer retornoPesquisa;
42      
43      private SisGrupoAtributoDao sisGrupoAtributoDao= null;
44      
45      private Long codEstrutura = null;
46         
47      
48      /**
49       * Inicializa a montagem da tag para ser adicionada na tela de HTML.<br>
50       * 
51       * @author N/C
52  	 * @since N/C
53  	 * @version N/C
54  	 * @return int
55  	 * @throws JspException
56       */
57      public int doStartTag() throws JspException {
58          try{
59              JspWriter writer = this.page.getOut();
60              StringBuffer s = new StringBuffer();
61              validacaoCampos = new StringBuffer();
62              retornoPesquisa = new StringBuffer();
63              int datas = 0;
64              String labelDataIni = "";
65              String labelDataFim = "";
66              if(atributos != null){
67                  Iterator it = atributos.iterator();
68                  while(it.hasNext()){
69                      ObjetoEstrutura atributoEstrutura = (ObjetoEstrutura) it.next();
70                       
71                      if(atributoEstrutura.iGetGrupoAtributosLivres() == null){
72                      	try {
73  	                        this.getClass().
74  	                        	getMethod("geraValidacao" + Util.primeiraLetraToUpperCase(atributoEstrutura.iGetNome()), new Class[] { ObjetoEstrutura.class }).
75  	                        		invoke(this, new Object[] { atributoEstrutura });
76  	                                           	}
77                      	catch(Exception e) {
78                          	Logger logger = Logger.getLogger(this.getClass());
79                          	logger.error(e);
80                      	}
81                      }
82                  }
83                  
84              }
85              s.append("function validar_"+ getCodEstrutura() +"(form) { \n");
86              if(validacaoCampos != null)
87                  s.append(validacaoCampos);
88              if(this.getSisGrupoAtributoSgaObrigatorio() != null && !this.getSisGrupoAtributoSgaObrigatorio().isEmpty()) {
89              	s.append(new ecar.dao.SisGrupoAtributoDao(null).getValidacoesAtributos(new ArrayList(this.getSisGrupoAtributoSgaObrigatorio())));
90              }
91              s.append( "return true;\n");
92              s.append("}\n");
93              if(retornoPesquisa != null)
94                  s.append(retornoPesquisa);
95              writer.print(s.toString());
96          } catch(Exception e){
97          	Logger logger = Logger.getLogger(this.getClass());
98          	logger.error(e);
99          }
100         return Tag.EVAL_BODY_INCLUDE;
101     }
102     
103     
104     /**
105      * Gera validação NomeIett.<br>
106      * 
107      * @author N/C
108 	 * @since N/C
109 	 * @version N/C
110      * @param ObjetoEstrutura atributo
111      */
112     public void geraValidacaoNomeIett(ObjetoEstrutura atributo) {
113         
114     }
115     /**
116      * Gera validação SiglaIett.<br>
117      * 
118      * @author N/C
119 	 * @since N/C
120 	 * @version N/C
121      * @param ObjetoEstrutura atributo
122      */
123     public void geraValidacaoSiglaIett(ObjetoEstrutura atributo) {
124         
125     }
126     /**
127      * Gera validação DescriçãoIett.<br>
128      * 
129      * @author N/C
130 	 * @since N/C
131 	 * @version N/C
132      * @param ObjetoEstrutura atributo
133      */
134     public void geraValidacaoDescricaoIett(ObjetoEstrutura atributo) {
135         
136     }
137     /**
138      * Gera validaçãoOrigemIett.<br>
139      * 
140      * @author N/C
141 	 * @since N/C
142 	 * @version N/C
143      * @param ObjetoEstrutura atributo
144      */
145     public void geraValidacaoOrigemIett(ObjetoEstrutura atributo) {
146         
147     }
148     /**
149      * Gera validaçãoObjetivoGeralIett.<br>
150      * 
151      * @author N/C
152 	 * @since N/C
153 	 * @version N/C
154      * @param ObjetoEstrutura atributo
155      */
156     public void geraValidacaoObjetivoGeralIett(ObjetoEstrutura atributo) {
157         
158     }
159     /**
160      * Gera validação BeneficiosIett.<br>
161      * 
162      * @author N/C
163 	 * @since N/C
164 	 * @version N/C
165      * @param ObjetoEstrutura atributo
166      */
167     public void geraValidacaoBeneficiosIett(ObjetoEstrutura atributo) {
168         
169     }
170     /**
171      * Gera validação Objeto especificoIett.<br>
172      * 
173      * @author N/C
174 	 * @since N/C
175 	 * @version N/C
176      * @param ObjetoEstrutura atributo
177      */
178     public void geraValidacaoObjetivoEspecificoIett(ObjetoEstrutura atributo) {
179         
180     }    
181     /**
182      * Gera validação data inicioIett.<br>
183      * 
184      * @author N/C
185 	 * @since N/C
186 	 * @version N/C
187      * @param ObjetoEstrutura atributo
188      */
189     public void geraValidacaoDataInicioIett(ObjetoEstrutura atributo) {
190         geraValidacaoData(atributo);
191     }
192     /**
193      * Gera validação Data termino Iett.<br>
194      * 
195      * @author N/C
196 	 * @since N/C
197 	 * @version N/C
198      * @param ObjetoEstrutura atributo
199      */
200     public void geraValidacaoDataTerminoIett(ObjetoEstrutura atributo) {
201         geraValidacaoData(atributo);
202     }
203     /**
204      * Gera validação IndCriticaIett.<br>
205      * 
206      * @author N/C
207 	 * @since N/C
208 	 * @version N/C
209      * @param ObjetoEstrutura atributo
210      */
211     public void geraValidacaoIndCriticaIett(ObjetoEstrutura atributo) {
212 
213     }
214     /**
215      * Gera validação IndMonitoramentoIett.<br>
216      * 
217      * @author N/C
218 	 * @since N/C
219 	 * @version N/C
220      * @param ObjetoEstrutura atributo
221      */
222     public void geraValidacaoIndMonitoramentoIett(ObjetoEstrutura atributo) {
223 
224     }
225     /**
226      * Gera validação IndMonitoramIett.<br>
227      * 
228      * @author N/C
229 	 * @since N/C
230 	 * @version N/C
231      * @param ObjetoEstrutura atributo
232      */
233     public void geraValidacaoIndMonitoramIett(ObjetoEstrutura atributo) {
234 
235     }
236     /**
237      * Gera validação IndPermBloqPlanejamentoIett.<br>
238      * 
239      * @author N/C
240 	 * @since N/C
241 	 * @version N/C
242      * @param ObjetoEstrutura atributo
243      */
244     public void geraValidacaoIndBloqPlanejamentoIett(ObjetoEstrutura atributo) {
245 
246     }
247     /**
248      * Gera validação IndPermBloqPlanejIett.<br>
249      * 
250      * @author N/C
251 	 * @since N/C
252 	 * @version N/C
253      * @param ObjetoEstrutura atributo
254      */
255     public void geraValidacaoIndPermBloqPlanejIett(ObjetoEstrutura atributo) {
256 
257     }
258     /**
259      * Gera validação ValPrevistoFuturoIett.<br>
260      * 
261      * @author N/C
262 	 * @since N/C
263 	 * @version N/C
264      * @param ObjetoEstrutura atributo
265      */
266     public void geraValidacaoValPrevistoFuturoIett(ObjetoEstrutura atributo) {
267         geraValidacaoNumeroDecimal(atributo);
268     }
269     /**
270      * Gera validação DataInicioMonitoramentoIett.<br>
271      * 
272      * @author N/C
273 	 * @since N/C
274 	 * @version N/C
275      * @param ObjetoEstrutura atributo
276      */
277     public void geraValidacaoDataInicioMonitoramentoIett(ObjetoEstrutura atributo) {
278     	geraValidacaoData(atributo);
279     }
280     /**
281      * Gera validação DataInclusaoIett.<br>
282      * 
283      * @author N/C
284 	 * @since N/C
285 	 * @version N/C
286      * @param ObjetoEstrutura atributo
287      */
288     public void geraValidacaoDataInclusaoIett(ObjetoEstrutura atributo) {
289     	geraValidacaoData(atributo);
290     }
291 
292     /**
293      * Gera validação UsuarioUsuByCodUsuIncIett.<br>
294      * 
295      * @author N/C
296 	 * @since N/C
297 	 * @version N/C
298      * @param ObjetoEstrutura atributo
299      */
300     public void geraValidacaoUsuarioUsuByCodUsuIncIett(ObjetoEstrutura atributo) {
301     	
302     }
303     /**
304      * Gera validação por data UltManutençãoIett.<br>
305      * 
306      * @author N/C
307 	 * @since N/C
308 	 * @version N/C
309      * @param ObjetoEstrutura atributo
310      */
311     public void geraValidacaoDataUltManutencaoIett(ObjetoEstrutura atributo) {
312     	geraValidacaoData(atributo);
313     }
314     /**
315      * Gera validação UsuarioUsuByCodUsuUltManutIett.<br>
316      * 
317      * @author N/C
318 	 * @since N/C
319 	 * @version N/C
320      * @param ObjetoEstrutura atributo
321      */
322     public void geraValidacaoUsuarioUsuByCodUsuUltManutIett(ObjetoEstrutura atributo) {
323     	
324     }
325 
326     /**
327      * Gera validação IndAtivoIett.<br>
328      * 
329      * @author N/C
330 	 * @since N/C
331 	 * @version N/C
332      * @param ObjetoEstrutura atributo
333      */
334     public void geraValidacaoIndAtivoIett(ObjetoEstrutura atributo) {
335     	
336     }
337 
338     /**
339      * Gera validação dataR1.<br>
340      * 
341      * @author N/C
342 	 * @since N/C
343 	 * @version N/C
344      * @param ObjetoEstrutura atributo
345      */
346     public void geraValidacaoDataR1(ObjetoEstrutura atributo) {
347         geraValidacaoData(atributo);
348     }
349 
350     /**
351      * Gera validação dataR2.<br>
352      * 
353      * @author N/C
354 	 * @since N/C
355 	 * @version N/C
356      * @param ObjetoEstrutura atributo
357      */
358     public void geraValidacaoDataR2(ObjetoEstrutura atributo) {
359         geraValidacaoData(atributo);
360     }
361 
362     /**
363      * Gera validação dataR3.<br>
364      * 
365      * @author N/C
366 	 * @since N/C
367 	 * @version N/C
368      * @param ObjetoEstrutura atributo
369      */
370     public void geraValidacaoDataR3(ObjetoEstrutura atributo) {
371         geraValidacaoData(atributo);
372     }
373 
374     /**
375      * Gera validação dataR4.<br>
376      * 
377      * @author N/C
378 	 * @since N/C
379 	 * @version N/C
380      * @param ObjetoEstrutura atributo
381      */
382 
383     public void geraValidacaoDataR4(ObjetoEstrutura atributo) {
384         geraValidacaoData(atributo);
385     }
386 
387     /**
388      * Gera validação dataR5.<br>
389      * 
390      * @author N/C
391 	 * @since N/C
392 	 * @version N/C
393      * @param ObjetoEstrutura atributo
394      */
395     public void geraValidacaoDataR5(ObjetoEstrutura atributo) {
396         geraValidacaoData(atributo);
397     }
398 
399     /**
400      * Gera validação descrisão1.<br>
401      * 
402      * @author N/C
403 	 * @since N/C
404 	 * @version N/C
405      * @param ObjetoEstrutura atributo
406      */
407     public void geraValidacaoDescricaoR1(ObjetoEstrutura atributo) {
408                 
409     }
410 
411     /**
412      * Gera validação descrisão2.<br>
413      * 
414      * @author N/C
415 	 * @since N/C
416 	 * @version N/C
417      * @param ObjetoEstrutura atributo
418      */
419     public void geraValidacaoDescricaoR2(ObjetoEstrutura atributo) {
420                 
421     }
422 
423     /**
424      * Gera validação descrisão3.<br>
425      * 
426      * @author N/C
427 	 * @since N/C
428 	 * @version N/C
429      * @param ObjetoEstrutura atributo
430      */
431     public void geraValidacaoDescricaoR3(ObjetoEstrutura atributo) {
432                 
433     }
434 
435     /**
436      * Gera validação descrisão4.<br>
437      * 
438      * @author N/C
439 	 * @since N/C
440 	 * @version N/C
441      * @param ObjetoEstrutura atributo
442      */
443     public void geraValidacaoDescricaoR4(ObjetoEstrutura atributo) {
444                 
445     }
446 
447     /**
448      * Gera validação descrisão5.<br>
449      * 
450      * @author N/C
451 	 * @since N/C
452 	 * @version N/C
453      * @param ObjetoEstrutura atributo
454      */
455     public void geraValidacaoDescricaoR5(ObjetoEstrutura atributo) {
456                 
457     }
458 
459     /**
460      * Gera validação AreaAre.<br>
461      * 
462      * @author N/C
463 	 * @since N/C
464 	 * @version N/C
465      * @param ObjetoEstrutura atributo
466      */
467     public void geraValidacaoAreaAre(ObjetoEstrutura atributo) {
468           
469     }
470 
471     /**
472      * Gera validação SubAreaAre.<br>
473      * 
474      * @author N/C
475 	 * @since N/C
476 	 * @version N/C
477      * @param ObjetoEstrutura atributo
478      */
479     public void geraValidacaoSubAreaSare(ObjetoEstrutura atributo) {
480           
481     }
482     /**
483      * Gera validação unidade orçamentaria UO.<br>
484      * 
485      * @author N/C
486 	 * @since N/C
487 	 * @version N/C
488      * @param ObjetoEstrutura atributo
489      */
490     public void geraValidacaoUnidadeOrcamentariaUO(ObjetoEstrutura atributo) {
491           
492     }
493     /**
494      * Gera validação orgão por codigo do orgao responsavel Iett.<Br>
495      * 
496      * @author N/C
497 	 * @since N/C
498 	 * @version N/C
499      * @param ObjetoEstrutura atributo
500      */
501     public void geraValidacaoOrgaoOrgByCodOrgaoResponsavel1Iett(ObjetoEstrutura atributo) {
502           
503     }
504     /**
505      * Gera validação orgão por codigo do orgao responsavel2 Iett.<br>
506      * 
507      * @author N/C
508 	 * @since N/C
509 	 * @version N/C
510      * @param ObjetoEstrutura atributo
511      */
512     public void geraValidacaoOrgaoOrgByCodOrgaoResponsavel2Iett(ObjetoEstrutura atributo) {
513           
514     }
515     /**
516      * Gera validação PeriodicidadePrdc.<br>
517      * 
518      * @author N/C
519 	 * @since N/C
520 	 * @version N/C
521      * @param ObjetoEstrutura atributo
522      */
523     public void geraValidacaoPeriodicidadePrdc(ObjetoEstrutura atributo) {
524           
525     }
526     /**
527      * Gera validação situação sit.<br>
528      * 
529      * @author N/C
530 	 * @since N/C
531 	 * @version N/C
532      * @param ObjetoEstrutura atributo
533      */
534     public void geraValidacaoSituacaoSit(ObjetoEstrutura atributo) {
535           
536     }
537     /**
538      * Gera validação função acompanhamento.<br>
539      * 
540      * @author N/C
541 	 * @since N/C
542 	 * @version N/C
543      * @param ObjetoEstrutura atributo
544      */
545     public void geraValidacaoFuncaoAcompanhamento(ObjetoEstrutura atributo) {
546         
547     }
548     
549     /**
550      * Gera validação Nivel planejamento.<br>
551      * 
552      * @author N/C
553 	 * @since N/C
554 	 * @version N/C
555      * @param ObjetoEstrutura atributo
556      */
557     public void geraValidacaoNivelPlanejamento(ObjetoEstrutura atributo){
558     	
559     }
560     /**
561      * Gera validação Função acompanhamento.<br>
562      * 
563      * @author N/C
564 	 * @since N/C
565 	 * @version N/C
566      * @param ObjetoEstrutura atributo
567      */
568     public void geraPesquisaFuncaoAcompanhamento(ObjetoEstrutura atributo){
569         getRetornoPesquisa().append( "function retorno").append(atributo.iGetNome()).append("(codigo, descricao) {\n");
570         getRetornoPesquisa().append( "if (document.form.").append(atributo.iGetNome()).append(".value != codigo){\n");
571         getRetornoPesquisa().append( "	if (eval(document.form.alterou)){\n");
572         getRetornoPesquisa().append( "	document.form.alterou.value = 'S';\n");
573         getRetornoPesquisa().append( "	}\n");
574         getRetornoPesquisa().append( "}\n");
575         getRetornoPesquisa().append( "document.form.nome").append(atributo.iGetNome()).append(".value = descricao;\n");
576         getRetornoPesquisa().append( "document.form.").append(atributo.iGetNome()).append(".value = codigo;\n");
577         getRetornoPesquisa().append("}\n");
578     }
579 
580     
581     /**
582      * Gera validação data.<br>
583      * 
584      * @author N/C
585 	 * @since N/C
586 	 * @version N/C
587      * @param ObjetoEstrutura atributo
588      */
589     private void geraValidacaoData(ObjetoEstrutura atributo){
590     	
591     	getValidacaoCampos().append("if((document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome() + "_Inicio").append("')[0]).value != \"\" && !validaData((document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome() + "_Inicio").append("')[0])").append(",false,true,true)){\n");
592         getValidacaoCampos().append( "  alert(\"Valor inválido para o campo ").append(atributo.iGetLabel()).append("\");\n" );
593         getValidacaoCampos().append(" return false; \n");
594         getValidacaoCampos().append( " } \n");
595         getValidacaoCampos().append("if((document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome() + "_Fim").append("')[0]).value != \"\" && !validaData((document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome() + "_Fim").append("')[0])").append(",false,true,true)){\n");
596         getValidacaoCampos().append( "  alert(\"Valor inválido para o campo ").append(atributo.iGetLabel()).append("\");\n" );
597         getValidacaoCampos().append(" return false; \n");
598         getValidacaoCampos().append( " } \n");
599         getValidacaoCampos().append("if(!DataMenor((document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome() + "_Inicio").append("')[0]).value, (document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome() + "_Fim").append("')[0]).value)){\n");
600         getValidacaoCampos().append( "  alert(\"").append(atributo.iGetLabel()).append(" inicial maior que final").append("\");\n" );
601         getValidacaoCampos().append(" return false; \n");
602         getValidacaoCampos().append( " } \n");
603     }
604     
605     /**
606      * Gera validação moeda.<br>
607      * 
608      * @author N/C
609 	 * @since N/C
610 	 * @version N/C
611      * @param ObjetoEstrutura atributo
612      */
613     private void geraValidacaoMoeda(ObjetoEstrutura atributo){
614         getValidacaoCampos().append("if((document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome()).append("_Inicio')[0]).value  != \"\" && !isValidMoeda((document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome()).append("_Inicio')[0]).value)){\n");
615         getValidacaoCampos().append( "  alert(\"Valor inválido para o campo ").append(atributo.iGetLabel()).append("\");\n" );
616         getValidacaoCampos().append(" return false; \n");
617         getValidacaoCampos().append( " } \n");
618         getValidacaoCampos().append("if((document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome()).append("_Fim')[0]).value  != \"\" && !isValidMoeda((document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome()).append("_Fim')[0]).value)){\n");
619         getValidacaoCampos().append( "  alert(\"Valor inválido para o campo ").append(atributo.iGetLabel()).append("\");\n" );
620         getValidacaoCampos().append(" return false; \n");
621         getValidacaoCampos().append( " } \n");
622         
623     }
624     
625     /**
626      * Gera validação Numero Decimal.<br>
627      * 
628      * @author N/C
629 	 * @since N/C
630 	 * @version N/C
631      * @param ObjetoEstrutura atributo
632      */
633     private void geraValidacaoNumeroDecimal(ObjetoEstrutura atributo){
634         getValidacaoCampos().append("if((document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome()).append("_Inicio')[0]).value != \"\" && !validaDecimal((document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome()).append("_Inicio')[0]).value)){\n");
635         getValidacaoCampos().append( "  alert(\"Valor inválido para o campo ").append(atributo.iGetLabel()).append("\");\n" );
636         //getValidacaoCampos().append( "  document.form.").append(getCodEstrutura()).append("_").append(atributo.iGetNome()).append(".focus();\n" );
637         getValidacaoCampos().append(" return false; \n");
638         getValidacaoCampos().append( " } \n");
639         getValidacaoCampos().append("if((document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome()).append("_Fim')[0]).value != \"\" && !validaDecimal((document.getElementsByName('").append(getCodEstrutura()).append("_").append(atributo.iGetNome()).append("_Fim')[0]).value)){\n");
640         getValidacaoCampos().append( "  alert(\"Valor inválido para o campo ").append(atributo.iGetLabel()).append("\");\n" );
641         //getValidacaoCampos().append( "  document.form.").append(getCodEstrutura()).append("_").append(atributo.iGetNome()).append(".focus();\n" );
642         getValidacaoCampos().append(" return false; \n");
643         getValidacaoCampos().append( " } \n");
644 
645     }
646     
647     
648    //Comentado porque nao precisa de validação em filtros
649     //private void geraValidacaoAtributoLivre(ObjetoEstrutura atributo){
650     	//depois testar pra ver se está sendo utilizado esta validação em outro lugar
651     	//if(atributo.iGetGrupoAtributosLivres() != null){
652     	//	SisGrupoAtributoSga grupoAtributo = atributo.iGetGrupoAtributosLivres();
653 
654     	//	getValidacaoCampos().append("/**** Início Validação Atributo Livre " + atributo.iGetNome() + " ****/");    		
655     	//	if ( sisGrupoAtributoDao==null)  {
656     	//		getValidacaoCampos().append((new SisGrupoAtributoDao(null)).getValidacaoAtributo(grupoAtributo));
657     	//	} else {
658     	//		getValidacaoCampos().append(sisGrupoAtributoDao.getValidacaoAtributo(grupoAtributo));
659     	//	}    		    		
660     	//	getValidacaoCampos().append("/**** Fim Validação Atributo Livre " + atributo.iGetNome() + " ****/");
661     	//}
662     //}
663         
664     
665     
666     public SisGrupoAtributoDao getSisGrupoAtributoDao() {
667 		return sisGrupoAtributoDao;
668 	}
669 
670 
671 	public void setSisGrupoAtributoDao(SisGrupoAtributoDao sisGrupoAtributoDao) {
672 		this.sisGrupoAtributoDao = sisGrupoAtributoDao;
673 	}
674 
675 
676 	/**
677      * Retorna Collection atributos.<br>
678      * 
679      * @author N/C
680 	 * @since N/C
681 	 * @version N/C
682      * @return Collection - (Returns the atributos)
683      */
684     public Collection getAtributos() {
685         return atributos;
686     }
687     
688     /**
689      * Atribui valor especificado para Collection atributos.<br>
690      * 
691      * @author N/C
692 	 * @since N/C
693 	 * @version N/C
694      * @param Collection atributos - (The atributos to set)
695      */
696     public void setAtributos(Collection atributos) {
697         this.atributos = atributos;
698     }
699     
700     /**
701      * Retorna StringBuffer retornoPesquisa.<br>
702      * 
703      * @author N/C
704 	 * @since N/C
705 	 * @version N/C
706      * @return StringBuffer - (Returns the retornoPesquisa)
707      */
708     public StringBuffer getRetornoPesquisa() {
709         return retornoPesquisa;
710     }
711     
712     /**
713      * Atribui valor especificado para StringBuffer retornoPesquisa.<br>
714      * 
715      * @author N/C
716 	 * @since N/C
717 	 * @version N/C
718      * @param StringBuffer retornoPesquisa - (The retornoPesquisa to set)
719      */
720     public void setRetornoPesquisa(StringBuffer retornoPesquisa) {
721         this.retornoPesquisa = retornoPesquisa;
722     }
723     
724     /**
725      * Retorna StringBuffer validacaoCampos.<br>
726      * 
727      * @author N/C
728 	 * @since N/C
729 	 * @version N/C
730      * @return StringBuffer Returns - (the validacaoCampos)
731      */
732     public StringBuffer getValidacaoCampos() {
733         return validacaoCampos;
734     }
735     
736     /**
737      * Atribui valor especificado para StringBuffer validacaoCampos.<br>
738      * 
739      * @author N/C
740 	 * @since N/C
741 	 * @version N/C
742      * @param StringBuffer validacaoCampos - (The validacaoCampos to set)
743      */
744     public void setValidacaoCampos(StringBuffer validacaoCampos) {
745         this.validacaoCampos = validacaoCampos;
746     }
747     
748     /**
749      * Encerra Tag.<br>
750      * 
751      * @author N/C
752 	 * @since N/C
753 	 * @version N/C
754 	 * @return int
755 	 * @throws JspException
756      */
757     public int doEndTag() throws JspException {
758         return Tag.EVAL_PAGE;
759     }
760 
761     /**
762      * Atribui valor especificado para PageContext page.<br>
763      * 
764      * @author N/C
765 	 * @since N/C
766 	 * @version N/C
767 	 * @param PageContext arg0
768      */
769     public void setPageContext(PageContext arg0) {
770         this.page = arg0;
771     }
772 
773     /**
774      * 
775      * 
776      * @author N/C
777 	 * @since N/C
778 	 * @version N/C
779 	 * @param Tag arg0
780      */
781     public void setParent(Tag arg0) {
782     }
783 
784     /**
785      * Retorna Tag null.<br>
786      * 
787      * @author N/C
788 	 * @since N/C
789 	 * @version N/C
790 	 * @rreturn Tag
791      */
792     public Tag getParent() {
793         return null;
794     }
795 
796     /**
797      * Retorna PageContext page.<br>
798      * 
799      * @author N/C
800 	 * @since N/C
801 	 * @version N/C
802      * @return PageContext - (Returns the page)
803      */
804     public PageContext getPage() {
805         return page;
806     }
807 
808     /**
809      * Atribui valor especificado para PageContext page.<br>
810      * 
811      * @author N/C
812 	 * @since N/C
813 	 * @version N/C
814      * @param PageContext page - (The page to set)
815      */
816     public void setPage(PageContext page) {
817         this.page = page;
818     }
819 
820     /**
821      * @author N/C
822 	 * @since N/C
823 	 * @version N/C
824      */
825     public void release() {
826 
827     }
828 
829     /**
830      * Retorna Collection sisGrupoAtributoSgaObrigatorio.<br>
831      * 
832      * @author N/C
833 	 * @since N/C
834 	 * @version N/C
835      * @return Collection
836      */
837 	public Collection getSisGrupoAtributoSgaObrigatorio() {
838 		return sisGrupoAtributoSgaObrigatorio;
839 	}
840 
841 	/**
842 	 * Atribui valor especificado para Collection sisGrupoAtributoSgaObrigatorio.<br>
843 	 * 
844 	 * @author N/C
845 	 * @since N/C
846 	 * @version N/C
847 	 * @param Collection sisGrupoAtributoSgaObrigatorio
848 	 */
849 	public void setSisGrupoAtributoSgaObrigatorio(Collection sisGrupoAtributoSgaObrigatorio) {
850 		this.sisGrupoAtributoSgaObrigatorio = sisGrupoAtributoSgaObrigatorio;
851 	}
852 
853 
854 	public Long getCodEstrutura() {
855 		return codEstrutura;
856 	}
857 
858 
859 	public void setCodEstrutura(Long codEstrutura) {
860 		this.codEstrutura = codEstrutura;
861 	}
862 }