use of org.ovirt.engine.api.model.Vms in project ovirt-engine by oVirt.
the class EntityHelperTest method testGetCollectionGettter.
@Test
public void testGetCollectionGettter() {
Method method = EntityHelper.getCollectionGetter(new Vms());
assertEquals("getVms", method.getName());
}
use of org.ovirt.engine.api.model.Vms in project ovirt-engine by oVirt.
the class V3FloppyInAdapter method adapt.
@Override
public Floppy adapt(V3Floppy from) {
Floppy to = new Floppy();
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.isSetFile()) {
to.setFile(adaptIn(from.getFile()));
}
if (from.isSetId()) {
to.setId(from.getId());
}
if (from.isSetHref()) {
to.setHref(from.getHref());
}
if (from.isSetInstanceType()) {
to.setInstanceType(adaptIn(from.getInstanceType()));
}
if (from.isSetName()) {
to.setName(from.getName());
}
if (from.isSetTemplate()) {
to.setTemplate(adaptIn(from.getTemplate()));
}
if (from.isSetVm()) {
to.setVm(adaptIn(from.getVm()));
}
if (from.isSetVms()) {
to.setVms(new Vms());
to.getVms().getVms().addAll(adaptIn(from.getVms().getVMs()));
}
return to;
}
Aggregations