Examples of transform()


Examples of org.mt4j.util.math.Vector3D.transform()

*/
  public float getWidthXYRelativeToParent() {
    Vector3D p = this.widthVect.getCopy();
    Matrix m = new Matrix(this.getLocalMatrix());
    m.removeTranslationFromMatrix();
    p.transform(m);
    return p.length();
  }
 
 
  /**
 

Examples of org.mt4j.util.math.Vertex.transform()

      super.setPositionRelativeToParent(position);
      break;
    case LOWER_LEFT:{
      Vertex[] vertices = this.getVerticesLocal();
      Vertex lowerLeft = new Vertex(vertices[3]);
      lowerLeft.transform(this.getLocalMatrix());
      this.translate(position.getSubtracted(lowerLeft), TransformSpace.RELATIVE_TO_PARENT);
    }break;
    case LOWER_RIGHT:{
      Vertex[] vertices = this.getVerticesLocal();
      Vertex v = new Vertex(vertices[2]);

Examples of org.mule.api.transformer.Transformer.transform()

        if(expected instanceof String)
        {
            try
            {
                Transformer toObject = getRoundTripTransformer();
                expected = toObject.transform(expected);
                result = toObject.transform(result);
            }
            catch (Exception e)
            {
                fail(e.getMessage());

Examples of org.mule.expression.transformers.ExpressionTransformer.transform()

        finally
        {
            Thread.currentThread().setContextClassLoader(originalClassLoader);
        }

        assertFalse((Boolean) transformer.transform("test"));

    }

    class MyClassClassLoader extends ClassLoader
    {

Examples of org.mule.module.json.transformers.JsonToObject.transform()

        String result = (String)serializer.transform(fc);
        assertNotNull(result);
        assertEquals(JsonBeanRoundTripTestCase.JSON_STRING, result);

        FruitCollection result2 = (FruitCollection)deserializer.transform(result);
        assertNotNull(result2);
        assertEquals(fc, result2);
    }
}

Examples of org.mule.module.json.transformers.JsonToXml.transform()

            "}";

        String xml = "<?xml version='1.0'?><customer><id>112</id><first-name>Jane</first-name><last-name>Doe</last-name><address><street>123 A Street</street></address><phone-number type=\"work\">555-1111</phone-number><phone-number type=\"cell\">555-2222</phone-number></customer>";

        JsonToXml jToX = new JsonToXml();
        String xmlResponse = (String) jToX.transform(json);
        assertEquals(xml, xmlResponse);

        xmlResponse = (String) jToX.transform(new StringReader(json));
        assertEquals(xml, xmlResponse);

Examples of org.mule.module.json.transformers.ObjectToJson.transform()

        assertEquals(1, deserializer.getDeserializationMixins().size());

       //Test roundTrip
        FruitCollection fc = JsonBeanRoundTripTestCase.JSON_OBJECT;

        String result = (String)serializer.transform(fc);
        assertNotNull(result);
        assertEquals(JsonBeanRoundTripTestCase.JSON_STRING, result);

        FruitCollection result2 = (FruitCollection)deserializer.transform(result);
        assertNotNull(result2);

Examples of org.mule.module.xml.transformer.AbstractXStreamTransformer.transform()

        assertEquals(1, transformer.getConverters().size());
        assertTrue(transformer.getConverters().contains(DummyConverter.class));

        Apple apple = new Apple();
        apple.wash();
        Object result = transformer.transform(apple);

        assertEquals("<apple>\n  <bitten>false</bitten>\n  <washed>true</washed>\n</apple>", result);
    }
}

Examples of org.mule.module.xml.transformer.JXPathExtractor.transform()

        final JXPathExtractor extractor = createObject(JXPathExtractor.class);
        final String expression = "/root/node";
        extractor.setExpression(expression);
        // just make code coverage tools happy
        assertEquals("Wrong expression returned.", expression, extractor.getExpression());
        final Object objResult = extractor.transform(TEST_XML_SINGLE_RESULT);
        assertNotNull(objResult);
        String result = (String)objResult;
        assertEquals("Wrong value extracted.", "value1", result);
    }

Examples of org.mule.module.xml.transformer.ObjectToXml.transform()

        msg.setCorrelationId("1234");
        msg.setInvocationProperty("number", 1);
        msg.setOutboundProperty("object", new Apple());
        msg.setOutboundProperty("string", "hello");

        String xml = (String) t1.transform(msg);
        assertNotNull(xml);

        XmlToObject t2 = createObject(XmlToObject.class);

        Object result = t2.transform(xml);
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.