Examples of copyModelObject()


Examples of com.volantis.mcs.interaction.Proxy.copyModelObject()

            PropertyDescriptor descriptor = (PropertyDescriptor) list.get(i);
            PropertyIdentifier identifier = descriptor.getIdentifier();
            PropertyAccessor accessor = descriptor.getPropertyAccessor();

            Proxy childProxy = getPropertyProxy(identifier);
            Object childObject = childProxy.copyModelObject();
            accessor.set(copy, childObject);
        }

        return copy;
    }
View Full Code Here

Examples of com.volantis.mcs.interaction.Proxy.copyModelObject()

        for (int i = 0; i < proxyItems.size(); i += 1) {
            ProxyListItem item = (ProxyListItem) proxyItems.get(i);
            int modelIndex = item.getModelIndex();
            if (modelIndex != -1) {
                Proxy proxy = item.getProxy();
                Object itemModelObject = proxy.copyModelObject();
                accessor.insert(copy, modelIndex, itemModelObject);
            }
        }

        // Return the new list.
View Full Code Here

Examples of com.volantis.mcs.interaction.Proxy.copyModelObject()

        Address address = createFlintStoneAddress();
        Person person = createFredFlintstone(address);

        Proxy proxy = createProxy(person);

        Person personCopy = (Person) proxy.copyModelObject();
        assertEquals("age", person.getAge(), personCopy.getAge());
        assertSame("firstName", person.getFirstName(), personCopy.getFirstName());
        assertSame("lastName", person.getLastName(), personCopy.getLastName());

        Address addressCopy = personCopy.getAddress();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.