use of org.ovirt.engine.api.v3.types.V3OperatingSystemInfos in project ovirt-engine by oVirt.
the class V3OperatingSystemInfosInAdapter method adapt.
@Override
public OperatingSystemInfos adapt(V3OperatingSystemInfos from) {
OperatingSystemInfos to = new OperatingSystemInfos();
if (from.isSetActions()) {
to.setActions(adaptIn(from.getActions()));
}
if (from.isSetActive()) {
to.setActive(from.getActive());
}
if (from.isSetSize()) {
to.setSize(from.getSize());
}
if (from.isSetTotal()) {
to.setTotal(from.getTotal());
}
to.getOperatingSystemInfos().addAll(adaptIn(from.getOperatingSystemInfos()));
return to;
}
use of org.ovirt.engine.api.v3.types.V3OperatingSystemInfos in project ovirt-engine by oVirt.
the class V3OperatingSystemInfosOutAdapter method adapt.
@Override
public V3OperatingSystemInfos adapt(OperatingSystemInfos from) {
V3OperatingSystemInfos to = new V3OperatingSystemInfos();
if (from.isSetActions()) {
to.setActions(adaptOut(from.getActions()));
}
if (from.isSetActive()) {
to.setActive(from.getActive());
}
if (from.isSetSize()) {
to.setSize(from.getSize());
}
if (from.isSetTotal()) {
to.setTotal(from.getTotal());
}
to.getOperatingSystemInfos().addAll(adaptOut(from.getOperatingSystemInfos()));
return to;
}
Aggregations