Package org.switchyard.config.model.transform

Examples of org.switchyard.config.model.transform.TransformModel


     * @param smooksConfigResPath The Smooks configuration classpath resource path.
     * @param transformerType The Smooks transformer type.
     * @return The Transformer instance.
     */
    public Transformer newTransformer(String smooksConfigResPath, SmooksTransformType transformerType) {
        TransformModel transformModel = new V1SmooksTransformModel(TransformNamespace.DEFAULT.uri())
                                            .setConfig(smooksConfigResPath)
                                            .setTransformType(transformerType)
                                            .setFrom(new QName("from")).setTo(new QName("to"));

        return getTestKit().newTransformer(transformModel);
View Full Code Here


            swConfigStream.close();
        }

        TransformsModel transforms = switchyardConfig.getTransforms();

        TransformModel transformModel = transforms.getTransforms().get(0);

        if (transformModel == null) {
            Assert.fail("No smooks config.");
        }
        TransformerRegistryLoader trl = new TransformerRegistryLoader(new BaseTransformerRegistry());
View Full Code Here

    @Test
    public void testParenthood() throws Exception {
        SwitchYardModel switchyard_1 = _puller.pull(XML, getClass());
        TransformsModel transforms_1 = switchyard_1.getTransforms();
        TransformModel transform = transforms_1.getTransforms().get(0);
        TransformsModel transforms_2 = transform.getTransforms();
        SwitchYardModel switchyard_2 = transforms_2.getSwitchYard();
        Assert.assertEquals(transforms_1, transforms_2);
        Assert.assertEquals(switchyard_1, switchyard_2);
    }
View Full Code Here

     * @param desc the Descriptor
     */
    public V1TransformsModel(Configuration config, Descriptor desc) {
        super(config, desc);
        for (Configuration transform_config : config.getChildrenStartsWith(TransformModel.TRANSFORM)) {
            TransformModel transform = (TransformModel)readModel(transform_config);
            if (transform != null) {
                _transforms.add(transform);
            }
        }
        setModelChildrenOrder(TransformModel.TRANSFORM);
View Full Code Here

TOP

Related Classes of org.switchyard.config.model.transform.TransformModel

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.