Package org.milyn.javabean.decoders

Examples of org.milyn.javabean.decoders.IntegerDecoder


        Bean orderBean = new Bean(HashMap.class, "order", "/order");

        orderBean.bindTo("header",
                orderBean.newBean(HashMap.class, "/order")
                    .bindTo("customerNumber", "header/customer/@number", new IntegerDecoder())
                    .bindTo("customerName", "header/customer")
                    .bindTo("privatePerson", "header/privatePerson")
                ).bindTo("orderItems",
                orderBean.newBean(ArrayList.class, "/order")
                        .bindTo(orderBean.newBean(HashMap.class, "order-item")
View Full Code Here


    Smooks smooks = new Smooks();

    smooks.addVisitor(new Value("customerName", "customer"));
    smooks.addVisitor(new Value("customerNumber", "customer/@number")
                .setDecoder(new IntegerDecoder()));
    smooks.addVisitor(new Value("privatePerson", "privatePerson")
                .setDecoder(new BooleanDecoder())
                .setDefaultValue("true"));

    JavaResult result = new JavaResult();
View Full Code Here

TOP

Related Classes of org.milyn.javabean.decoders.IntegerDecoder

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.