use of org.ovirt.engine.api.model.Dns in project ovirt-engine by oVirt.
the class V3DNSInAdapter method adapt.
@Override
public Dns adapt(V3DNS from) {
Dns to = new Dns();
if (from.isSetSearchDomains()) {
to.setSearchDomains(new Hosts());
to.getSearchDomains().getHosts().addAll(adaptIn(from.getSearchDomains().getHosts()));
}
if (from.isSetServers()) {
to.setServers(new Hosts());
to.getServers().getHosts().addAll(adaptIn(from.getServers().getHosts()));
}
return to;
}