Examples of Transformation


Examples of org.andromda.core.configuration.Transformation

        assertNotNull(modelUrl);
        URL transformation1Uri = XslTransformerTest.class.getResource("transformation1.xsl");
        assertNotNull(transformation1Uri);
        URL transformation2Uri = XslTransformerTest.class.getResource("transformation2.xsl");
        assertNotNull(transformation2Uri);
        Transformation transformation1 = new Transformation();
        transformation1.setUri(transformation1Uri.toString());
        Transformation transformation2 = new Transformation();
        transformation2.setUri(transformation2Uri.toString());
        Transformation[] transformations = new Transformation[] {transformation1, transformation2};
        InputStream stream = transformer.transform(modelUrl.toString(), transformations);
        assertNotNull(stream);
    }
View Full Code Here

Examples of org.apache.tomcat.websocket.Transformation

        // Create the Transformations that will be applied to this connection
        List<Transformation> transformations = createTransformations(negotiatedExtensions);

        // Build the transformation pipeline
        Transformation transformation = null;
        StringBuilder responseHeaderExtensions = new StringBuilder();
        boolean first = true;
        for (Transformation t : transformations) {
            if (first) {
                first = false;
            } else {
                responseHeaderExtensions.append(',');
            }
            append(responseHeaderExtensions, t.getExtensionResponse());
            if (transformation == null) {
                transformation = t;
            } else {
                transformation.setNext(t);
            }
        }

        // Now we have the full pipeline, validate the use of the RSV bits.
        if (transformation != null && !transformation.validateRsvBits(0)) {
            // TODO i18n
            throw new ServletException("Incompatible RSV bit usage");
        }

        // If we got this far, all is good. Accept the connection.
View Full Code Here

Examples of org.apache.tomcat.websocket.Transformation

            preferences.add(extension.getParameters());
        }

        for (Map.Entry<String,List<List<Extension.Parameter>>> entry :
            extensionPreferences.entrySet()) {
            Transformation transformation = factory.create(entry.getKey(), entry.getValue());
            if (transformation != null) {
                result.add(transformation);
            }
        }
        return result;
View Full Code Here

Examples of org.jitterbit.integration.data.entity.Transformation

        return getActivity().getContent();
    }

    @Override
    protected String getContentString() {
        Transformation tf = getTransformation();
        String name = tf != null ? tf.getName() : getActivity().getRole();
        if (Transformation.isPassThrough(tf)) {
            name = "(" + name + ")";
        }
        return name;
    }
View Full Code Here

Examples of org.openetcs.sysml2scade.suite.transformation.Transformation

    } catch (CoreException e) {
      e.printStackTrace();
    }

    // Generate the Classical B source
    Transformation generator= new Transformation(model, project);
    try {
      generator.generateAndWrite();
    } catch (Exception e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    }
View Full Code Here

Examples of purrpackagedemo.Transformation

public class TestIntersection extends TestCase {

  @Test
  public void testContains() {
    Transformation t = new Transformation.Translation( 0.5, 0.5 );
    Intersection r = new Intersection( Polygon.UNIT_SQUARE, t.apply( Polygon.UNIT_SQUARE ) );
    assertFalse( r.contains( Point.ORIGIN ));
    assertTrue( r.contains( new Point( 0.75, 0.75 )));
    assertFalse( r.contains( new Point( .75, .25 )));
    assertFalse( r.contains( new Point( .25, .25 )));
    assertFalse( r.contains( new Point( .25, .65 )));
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.