Examples of MyBean


Examples of com.dooapp.fxform.MyBean

    }

    @Override
    public boolean isValid(final Object value, final ConstraintValidatorContext context) {
        try {
            MyBean myBean = (MyBean) value;

            return myBean.getPassword() == null && myBean.getRepeatPassword() == null || myBean.getPassword() != null && myBean.getPassword().equals(myBean.getRepeatPassword());
        } catch (final Exception ignore) {
            // ignore
        }
        return true;
    }
View Full Code Here

Examples of com.floreysoft.jmte.AbstractEngineTest.MyBean

      for (int i = 0; i < reps; i++) {
        StringBuilder output = new StringBuilder();
        List<MyBean> list = (List<MyBean>) InterpretedEngineTest.DEFAULT_MODEL
            .get("list");
        for (Iterator iterator = list.iterator(); iterator.hasNext();) {
          MyBean myBean = (MyBean) iterator.next();
          output.append(myBean.getProperty1().toString());
          if (iterator.hasNext()) {
            output.append("\n");
          }
        }
        assertEquals("1.1\n2.1", output.toString());
View Full Code Here

Examples of com.floreysoft.jmte.AbstractEngineTest.MyBean

      for (int i = 0; i < reps; i++) {
        String output = "";
        List<MyBean> list = (List<MyBean>) InterpretedEngineTest.DEFAULT_MODEL
            .get("list");
        for (Iterator iterator = list.iterator(); iterator.hasNext();) {
          MyBean myBean = (MyBean) iterator.next();
          output += myBean.getProperty1().toString();
          if (iterator.hasNext()) {
            output += "\n";
          }
        }
        assertEquals("1.1\n2.1", output);
View Full Code Here

Examples of com.testdomain.MyBean

    account3 = new Account();
    account3.setId(3);

    List params = Arrays.asList(new Account[]{account1, account2, account3});

    MyBean x = new MyBean();
    x.setMyList(params);

    List list = sqlMap.queryForList("dynamicIterateWithPrepend2c", x);
    assertAccount1((Account) list.get(0));
    assertEquals(3, list.size());
    assertEquals(1, ((Account) list.get(0)).getId());
View Full Code Here

Examples of com.testdomain.MyBean

  public void testIterateWithPrepend2d() throws SQLException {

    List params = Arrays.asList(new Integer[]{new Integer(1), new Integer(2), new Integer(3)});

    MyBean x = new MyBean();
    x.setMyList(params);

    List list = sqlMap.queryForList("dynamicIterateWithPrepend2d", x);
    assertAccount1((Account) list.get(0));
    assertEquals(2, list.size());
    assertEquals(1, ((Account) list.get(0)).getId());
View Full Code Here

Examples of com.testdomain.MyBean

  public void testIterateWithPrepend2e() throws SQLException {

    Object[] params = new Object[]{new Integer(1), new Integer(2), new Integer(3)};

    MyBean x = new MyBean();
    x.setMyArray(params);

    List list = sqlMap.queryForList("dynamicIterateWithPrepend2e", x);
    assertAccount1((Account) list.get(0));
    assertEquals(2, list.size());
    assertEquals(1, ((Account) list.get(0)).getId());
View Full Code Here

Examples of com.testdomain.MyBean

  public void testIterateWithPrepend2f() throws SQLException {

    int[] params = new int[]{1, 2, 3};

    MyBean x = new MyBean();
    x.setIntArray(params);

    List list = sqlMap.queryForList("dynamicIterateWithPrepend2f", x);
    assertAccount1((Account) list.get(0));
    assertEquals(2, list.size());
    assertEquals(1, ((Account) list.get(0)).getId());
View Full Code Here

Examples of org.apache.axiom.om.ds.jaxb.beans.MyBean

     * {@link XMLStreamWriter}.
     */
    @Test
    public void testSerializeDirect() throws Exception {
        JAXBContext context = JAXBContext.newInstance(MyBean.class);
        MyBean orgBean = new MyBean(3, 5);
        JAXBOMDataSource ds = new JAXBOMDataSource(context, orgBean);
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        XMLStreamWriter writer = StAXUtils.createXMLStreamWriter(out);
        ds.serialize(writer);
        writer.close();
        MyBean bean = (MyBean)context.createUnmarshaller().unmarshal(
                new ByteArrayInputStream(out.toByteArray()));
        assertEquals(orgBean.getA(), bean.getA());
        assertEquals(orgBean.getB(), bean.getB());
    }
View Full Code Here

Examples of org.apache.camel.converter.MyBean

@Converter
public class InstanceMethodWithExchangeTestConverter {

    @Converter
    public MyBean fromArray(String[] values, Exchange exchange) {
        return new MyBean(Integer.parseInt(values[0]),
            exchange.getProperty("prefix", String.class) + values[1]);
    }
View Full Code Here

Examples of org.apache.camel.converter.MyBean

public class StaticMethodWithExchangeTestConverter {

    @Converter
    public MyBean fromString(String text, Exchange exchange) {
        String[] values = ObjectHelper.splitOnCharacter(text, ":", 2);
        return new MyBean(Integer.parseInt(values[0]), exchange.getProperty("prefix", String.class) + values[1]);
    }
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.