Package com.volantis.mcs.interaction

Examples of com.volantis.mcs.interaction.InteractionModel


    // Javadoc inherited
    public Proxy wrapPolicy(PolicyBuilder policy, ModelDescriptor descriptor,
                            IProject project) throws PolicyFileAccessException {
        InteractionFactory interactionFactory =
                InteractionFactory.getDefaultInstance();
        InteractionModel interactionModel = interactionFactory
                .createInteractionModel(descriptor);
        return interactionModel.createProxyForModelObject(policy);
    }
View Full Code Here


                BinaryContentInput content = new BinaryContentInput(is);
                Object theme = reader.read(content, file.getName());

                InteractionFactory interactionFactory =
                        InteractionFactory.getDefaultInstance();
                InteractionModel interactionModel = interactionFactory
                        .createInteractionModel(PolicyModel.MODEL_DESCRIPTOR);

                Proxy proxy = interactionModel.createProxyForModelObject(theme);
                proxy.validate();
                new ResourceDiagnosticsAdapter(resource).
                        setDiagnostics(proxy.getDiagnostics());

            }
View Full Code Here

    private ListProxy contactsListProxy;

    public InteractionSampleGUI(GUI gui) {
        this.gui = gui;
        InteractionFactory factory = InteractionFactory.getDefaultInstance();
        InteractionModel descriptor =
                factory.createInteractionModel(Descriptors.MODEL_DESCRIPTOR);

        contactsProxy = (BeanProxy) descriptor.createProxyForModelObject(
                new Contacts());

        contactsListProxy =
                (ListProxy) contactsProxy.getPropertyProxy(Contacts.CONTACTS);
    }
View Full Code Here

    }

    protected Proxy createProxy(Object object) {
        ModelDescriptor descriptor = Descriptors.MODEL_DESCRIPTOR;
        InteractionFactory factory = InteractionFactory.getDefaultInstance();
        InteractionModel interactionModel =
                factory.createInteractionModel(descriptor);

        Proxy proxy = interactionModel.createProxyForModelObject(object);
        return proxy;
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.interaction.InteractionModel

Copyright © 2018 www.massapicom. 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.