Examples of XLinkConnectorView


Examples of org.openengsb.core.api.xlink.model.XLinkConnectorView

        List<XLinkConnectorView> views = new ArrayList<XLinkConnectorView>();

        descriptions.put(Locale.ENGLISH, "This is a demo view.");
        descriptions.put(Locale.GERMAN, "Das ist eine demonstration view.");
        views = new ArrayList<XLinkConnectorView>();
        views.add(new XLinkConnectorView(viewId1, toolName, descriptions));
        views.add(new XLinkConnectorView(viewId2, toolName, descriptions));

        modelViewMappings[0] =
            new ModelViewMapping(
                new ModelDescription(
                    ExampleObjectOrientedModel.class.getName(),
View Full Code Here

Examples of org.openengsb.core.api.xlink.model.XLinkConnectorView

    @BeforeClass
    public static void setUpClass() throws Exception {
        descriptions.put(Locale.ENGLISH, "This is a demo view.");
        descriptions.put(Locale.GERMAN, "Das ist eine demonstration view.");
        views = new ArrayList<>();
        views.add(new XLinkConnectorView(viewId1, toolName, descriptions));
        views.add(new XLinkConnectorView(viewId2, toolName, descriptions));
        modelsToViews.put(new ModelDescription(exampleModelClass.getName(), exampleModelClassVersion),
                views.toArray(new XLinkConnectorView[0]));
   
        serviceFinder = mock(OsgiUtilsService.class);
        ModelRegistry registry = mock(ModelRegistry.class);
View Full Code Here

Examples of org.openengsb.core.api.xlink.model.XLinkConnectorView

    public static XLinkConnectorView[] getViewsOfRegistration(XLinkConnectorRegistration registration) {
        List<XLinkConnectorView> viewsOfRegistration = new ArrayList<XLinkConnectorView>();
        Map<ModelDescription, XLinkConnectorView[]> modelsToViews = registration.getModelsToViews();
        for (XLinkConnectorView[] views : modelsToViews.values()) {
            for (int i = 0; i < views.length; i++) {
                XLinkConnectorView view = views[i];
                if (!viewsOfRegistration.contains(view)) {
                    viewsOfRegistration.add(view);
                }
            }               
        }
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.