if(!itAtributos.hasNext()){
nomeItem = "Atributo n�o configurado";
}else if (item.getCodIett() != null) {
while(itAtributos.hasNext()){
EstruturaAtributoEttat atributo = (EstruturaAtributoEttat) itAtributos.next();
boolean campoMultiValor = false;
boolean primeiro = true;
if (atributo.getAtributosAtb().getSisGrupoAtributoSga() == null) { //Se n�o for atributo livre
if (atributo.getAtributosAtb().getSisGrupoAtributoSga() == null) { //Se n�o for atributo livre
if("nivelPlanejamento".equals(atributo.iGetNome())){
String niveis = "";
if(item.getItemEstruturaNivelIettns() != null && !item.getItemEstruturaNivelIettns().isEmpty()){
Iterator itNiveis = item.getItemEstruturaNivelIettns().iterator();
while(itNiveis.hasNext()){
SisAtributoSatb nivel = (SisAtributoSatb) itNiveis.next();
niveis += nivel.getDescricaoSatb() + "; ";
}
niveis = niveis.substring(0, niveis.lastIndexOf(";"));
}
nomeItem += niveis + (itAtributos.hasNext() ? " - " : "");
}
else {
nomeItem += atributo.iGetValor(item) + (itAtributos.hasNext() ? " - " : "");
}
}
} else {//Se for atributo livre
Set<SisAtributoSatb> sisAtributos = atributo.getAtributosAtb().getSisGrupoAtributoSga().getSisAtributoSatbs();
Iterator sisAtributosIt = sisAtributos.iterator();
while(sisAtributosIt.hasNext()) { //Obtem os atributos livres do grupo
SisAtributoSatb sisAtributo = (SisAtributoSatb)sisAtributosIt.next();
ItemEstruturaSisAtributoIettSatbPK itemSisAtributoPk = new ItemEstruturaSisAtributoIettSatbPK(item.getCodIett(),sisAtributo.getCodSatb());