Search in sources :

Example 1 with V3Creation

use of org.ovirt.engine.api.v3.types.V3Creation in project ovirt-engine by oVirt.

the class V3CreationOutAdapter method adapt.

@Override
public V3Creation adapt(Creation from) {
    V3Creation to = new V3Creation();
    if (from.isSetId()) {
        to.setId(from.getId());
    }
    if (from.isSetHref()) {
        to.setHref(from.getHref());
    }
    if (from.isSetLinks()) {
        to.getLinks().addAll(adaptOut(from.getLinks()));
    }
    if (from.isSetStatus()) {
        V3Status toStatus = new V3Status();
        toStatus.setState(from.getStatus());
        to.setStatus(toStatus);
    }
    if (from.isSetFault()) {
        to.setFault(adaptOut(from.getFault()));
    }
    return to;
}
Also used : V3Creation(org.ovirt.engine.api.v3.types.V3Creation) V3Status(org.ovirt.engine.api.v3.types.V3Status)

Aggregations

V3Creation (org.ovirt.engine.api.v3.types.V3Creation)1 V3Status (org.ovirt.engine.api.v3.types.V3Status)1