use of org.ovirt.engine.api.v3.types.V3KatelloErratum in project ovirt-engine by oVirt.
the class V3KatelloErratumInAdapter method adapt.
@Override
public KatelloErratum adapt(V3KatelloErratum from) {
KatelloErratum to = new KatelloErratum();
if (from.isSetLinks()) {
to.getLinks().addAll(adaptIn(from.getLinks()));
}
if (from.isSetActions()) {
to.setActions(adaptIn(from.getActions()));
}
if (from.isSetComment()) {
to.setComment(from.getComment());
}
if (from.isSetDescription()) {
to.setDescription(from.getDescription());
}
if (from.isSetHost()) {
to.setHost(adaptIn(from.getHost()));
}
if (from.isSetId()) {
to.setId(from.getId());
}
if (from.isSetHref()) {
to.setHref(from.getHref());
}
if (from.isSetIssued()) {
to.setIssued(from.getIssued());
}
if (from.isSetName()) {
to.setName(from.getName());
}
if (from.isSetPackages()) {
to.setPackages(new Packages());
to.getPackages().getPackages().addAll(adaptIn(from.getPackages().getPackages()));
}
if (from.isSetSeverity()) {
to.setSeverity(from.getSeverity());
}
if (from.isSetSolution()) {
to.setSolution(from.getSolution());
}
if (from.isSetSummary()) {
to.setSummary(from.getSummary());
}
if (from.isSetTitle()) {
to.setTitle(from.getTitle());
}
if (from.isSetType()) {
to.setType(from.getType());
}
if (from.isSetVm()) {
to.setVm(adaptIn(from.getVm()));
}
return to;
}
use of org.ovirt.engine.api.v3.types.V3KatelloErratum in project ovirt-engine by oVirt.
the class V3KatelloErratumOutAdapter method adapt.
@Override
public V3KatelloErratum adapt(KatelloErratum from) {
V3KatelloErratum to = new V3KatelloErratum();
if (from.isSetLinks()) {
to.getLinks().addAll(adaptOut(from.getLinks()));
}
if (from.isSetActions()) {
to.setActions(adaptOut(from.getActions()));
}
if (from.isSetComment()) {
to.setComment(from.getComment());
}
if (from.isSetDescription()) {
to.setDescription(from.getDescription());
}
if (from.isSetHost()) {
to.setHost(adaptOut(from.getHost()));
}
if (from.isSetId()) {
to.setId(from.getId());
}
if (from.isSetHref()) {
to.setHref(from.getHref());
}
if (from.isSetIssued()) {
to.setIssued(from.getIssued());
}
if (from.isSetName()) {
to.setName(from.getName());
}
if (from.isSetPackages()) {
to.setPackages(new V3Packages());
to.getPackages().getPackages().addAll(adaptOut(from.getPackages().getPackages()));
}
if (from.isSetSeverity()) {
to.setSeverity(from.getSeverity());
}
if (from.isSetSolution()) {
to.setSolution(from.getSolution());
}
if (from.isSetSummary()) {
to.setSummary(from.getSummary());
}
if (from.isSetTitle()) {
to.setTitle(from.getTitle());
}
if (from.isSetType()) {
to.setType(from.getType());
}
if (from.isSetVm()) {
to.setVm(adaptOut(from.getVm()));
}
return to;
}
Aggregations