/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.elotech.websaude.integracao.cnes.backend.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author elotech
 */
@XmlRootElement(name = "ROOT")
public class Root implements java.io.Serializable {
    @XmlElement(name = "VERSAO")
    public Versao versao;
    
    @XmlElementWrapper(name = "ESTABELECIMENTOS")
    @XmlElement(name = "DADOS_GERAIS_ESTABELECIMENTOS")
    public List<Estabelecimento> estabelecimentos;


    @Override
    public String toString() {
        return "Root{\n\t" + "versao=" + versao + ", estabelecimentos=" + estabelecimentos + "\n}";
    }
    
    
    
    
}
