Package org.thechiselgroup.choosel.core.client.resources

Examples of org.thechiselgroup.choosel.core.client.resources.ResourceByUriMultiCategorizer


        initialSlotMapping.put(requiredSlots[0], resolver);

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        Resource resource = createResource(1);
        resource.putValue(property1, 1);
        resource.putValue(property2, 2);
        model.getContentResourceSet().add(resource);
View Full Code Here


                                DataType.NUMBER)));

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        model.setContentResourceSet(new DefaultResourceSet());

        Resource resource1 = ResourceSetTestUtils.createResource(1);
        resource1.putValue(property1, 1);
View Full Code Here

                                DataType.TEXT)));

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        Resource resource = createResource(1);
        resource.putValue(property1, 1);
        // unresolvable by either resolvers
        resource.putValue(property2, "a");
View Full Code Here

                                DataType.NUMBER)));

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        model.getContentResourceSet().add(createResource(1));

        assertTrue(model.hasErrors());
        assertThat(model.getSlotsWithErrors(),
View Full Code Here

                        new FixedValueResolver(1, DataType.NUMBER)));

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        model.setResolver(requiredSlots[0], resolver);

        Resource resource = ResourceSetTestUtils.createResource(1);
        resource.putValue(property1, 2);
View Full Code Here

        initialSlotMapping.put(requiredSlots[0], resolver);

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        model.setContentResourceSet(new DefaultResourceSet());
        Resource resource1 = ResourceSetTestUtils.createResource(1);
        resource1.putValue(property1, 1);
        resource1.putValue(property2, 2);
View Full Code Here

        initialSlotMapping.put(requiredSlots[0], resolver);

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        Resource resource = createResource(1);
        resource.putValue(property1, 1);
        resource.putValue(property2, 2);
View Full Code Here

                                DataType.NUMBER)));

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        Resource resource = ResourceSetTestUtils.createResource(1);
        resource.putValue(property1, 1);
        model.getContentResourceSet().add(resource);
View Full Code Here

                                DataType.TEXT)));

        slotMappingInitializer = new TestSlotMappingInitializer(
                initialSlotMapping);

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        Resource resource1 = ResourceSetTestUtils.createResource(1);
        resource1.putValue(property1, 1);
        resource1.putValue(property2, "a");
View Full Code Here

        /*
         * create the ViewModel, as well as initialize the
         * slotMappingConfiguration
         */

        DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());

        model.getContentResourceSet().add(createResource(1));

        /* Test results */
        LightweightCollection<VisualItem> visualItems = model
View Full Code Here

TOP

Related Classes of org.thechiselgroup.choosel.core.client.resources.ResourceByUriMultiCategorizer

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.