Search in sources :

Example 1 with V3OperatingSystemInfos

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;
}
Also used : V3OperatingSystemInfos(org.ovirt.engine.api.v3.types.V3OperatingSystemInfos) OperatingSystemInfos(org.ovirt.engine.api.model.OperatingSystemInfos)

Example 2 with V3OperatingSystemInfos

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;
}
Also used : V3OperatingSystemInfos(org.ovirt.engine.api.v3.types.V3OperatingSystemInfos)

Aggregations

V3OperatingSystemInfos (org.ovirt.engine.api.v3.types.V3OperatingSystemInfos)2 OperatingSystemInfos (org.ovirt.engine.api.model.OperatingSystemInfos)1