Examples of translate()


Examples of org.apache.hivemind.schema.rules.ServicePointTranslator.translate()

        replayControls();

        Translator t = new ServicePointTranslator();

        ServicePoint result = (ServicePoint) t.translate(m, null, "Fred");

        assertSame(sp, result);

        verifyControls();
    }
View Full Code Here

Examples of org.apache.hivemind.schema.rules.SmartTranslator.translate()

     */
    public void testInt()
    {
        Translator t = new SmartTranslator();

        Object result = t.translate(null, int.class, "-37");

        assertEquals(new Integer(-37), result);
    }

    public void testBlankInput()
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Bounds.translate()

    @Override
    public DragEvent dragStart(final DragStart drag) {
        if (isOverColumnBorder(drag.getLocation())) {
            resizeColumn = axis.getColumnBorderAt(drag.getLocation().getX());
            final Bounds resizeArea = new Bounds(getView().getAbsoluteLocation(), getSize());
            resizeArea.translate(getView().getPadding().getLeft(), getView().getPadding().getTop());
            if (resizeColumn == 0) {
                resizeArea.setWidth(axis.getHeaderOffset());
            } else {
                resizeArea.translate(axis.getLeftEdge(resizeColumn - 1), 0);
                resizeArea.setWidth(axis.getColumnWidth(resizeColumn - 1));
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Location.translate()

        final int left = axis.getHeaderOffset();
        ;
        final int x = click.getLocation().getX();
        if (x <= left) {
            final Location location = getAbsoluteLocation();
            location.translate(click.getLocation());
            getWorkspace().objectActionResult(getContent().getAdapter(), new Placement(this));
        } else {
            super.secondClick(click);
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Shape.translate()

    }

    @Override
    public void drawShape(final Shape shape, final int x, final int y, final Color color) {
        final Shape copy = new Shape(shape);
        copy.translate(x, y);
        drawShape(copy, color);
    }

    @Override
    public void drawSolidOval(final int x, final int y, final int width, final int height, final Color color) {
View Full Code Here

Examples of org.apache.jackrabbit.vault.fs.api.WorkspaceFilter.translate()

            String rootPath = parent.getPath();
            if (rootPath.equals("/")) {
                rootPath = "";
            }
            if (mountPath.length() > 0 || rootPath.length() > 0) {
                filter = filter.translate(new SimplePathMapping(mountPath, rootPath));
            }
            writeFile(filter.getSource(), Constants.META_DIR + "/" + Constants.FILTER_XML);
        }
        export(parent, "");
        if (!noMetaInf) {
View Full Code Here

Examples of org.apache.jackrabbit.vault.fs.config.DefaultWorkspaceFilter.translate()

    public void testMapping1() {
        DefaultWorkspaceFilter filter = new DefaultWorkspaceFilter();
        PathFilterSet set1 = new PathFilterSet("/tmp/stage/products");
        filter.add(set1);
        PathMapping map = new SimplePathMapping("/tmp/stage", "/content/geometrixx/en");
        WorkspaceFilter mapped = filter.translate(map);
        assertFalse(mapped.contains("/content/geometrixx/en"));
        assertTrue(mapped.contains("/content/geometrixx/en/products"));
    }

    @Test
View Full Code Here

Examples of org.apache.maven.plugin.dependency.utils.translators.ArtifactTranslator.translate()

        // classifier and type
        // if this did something, we need to resolve the new artifacts
        if ( StringUtils.isNotEmpty( classifier ) )
        {
            ArtifactTranslator translator = new ClassifierTypeTranslator( this.classifier, this.type, this.factory );
            artifacts = translator.translate( artifacts, getLog() );

            status = filterMarkedDependencies( artifacts );

            // the unskipped artifacts are in the resolved set.
            artifacts = status.getResolvedDependencies();
View Full Code Here

Examples of org.apache.maven.plugin.dependency.utils.translators.ClassifierTypeTranslator.translate()

        // classifier and type
        // if this did something, we need to resolve the new artifacts
        if ( StringUtils.isNotEmpty( classifier ) )
        {
            ArtifactTranslator translator = new ClassifierTypeTranslator( this.classifier, this.type, this.factory );
            artifacts = translator.translate( artifacts, getLog() );

            status = filterMarkedDependencies( artifacts );

            // the unskipped artifacts are in the resolved set.
            artifacts = status.getResolvedDependencies();
View Full Code Here

Examples of org.apache.oodt.xmlps.mapping.funcs.MappingFunc.translate()

                    for (Iterator<MappingFunc> j = fld.getFuncs().iterator(); j
                            .hasNext();) {
                        MappingFunc func = j.next();
                        CDEValue origVal = new CDEValue(fld.getName(),
                                litElem.getValue());
                        CDEValue newVal = func.translate(origVal);
                        litElem.setValue(newVal.getVal());
                    }

                }
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.