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;
}
Aggregations