Examples of MapEntryAdder


Examples of cookxml.common.adder.MapEntryAdder

    tagLibrary.setCreator ("hashset", DefaultCreator.getCreator (HashSet.class, true));

    //
    // maps
    //
    tagLibrary.addAdder (MAP, new MapEntryAdder ());
    // helper object for maps
    tagLibrary.setCreator ("mapentry", DefaultCreator.getCreator (MapEntryHelper.class, true));
    // HashMap
    tagLibrary.setCreator ("hashmap", DefaultCreator.getCreator (HashMap.class, true));
    tagLibrary.inheritTag (MAP, "hashmap");
View Full Code Here

Examples of org.apache.commons.betwixt.expression.MapEntryAdder

        Class keyType = types[0];
        Class valueType = types[1];
       
        // loop through children
        // adding updaters for key and value
        MapEntryAdder adder = new MapEntryAdder(twinParameterAdderMethod);
        for (
            int n=0,
                noOfGrandChildren = children.length;
            n < noOfGrandChildren;
            n++ ) {
            if ( "key".equals( children[n].getLocalName() ) ) {
                             
                children[n].setUpdater( adder.getKeyUpdater() );
                children[n].setSingularPropertyTypekeyType );
                if (children[n].getPropertyType() == null) {
                    children[n].setPropertyType( valueType );
                }
                if ( isPrimitiveType(keyType) ) {
                    children[n].setHollow(false);
                }
                if ( getLog().isTraceEnabled() ) {
                    getLog().trace( "Key descriptor: " + children[n]);
                }                                              
                                       
            } else if ( "value".equals( children[n].getLocalName() ) ) {

                children[n].setUpdater( adder.getValueUpdater() );
                children[n].setSingularPropertyType( valueType );
                if (children[n].getPropertyType() == null) {
                    children[n].setPropertyType( valueType );
                }
                if ( isPrimitiveType( valueType) ) {
View Full Code Here

Examples of org.apache.commons.betwixt.expression.MapEntryAdder

                                    } else {
                                        // loop through grandchildren
                                        // adding updaters for key and value
                                        ElementDescriptor[] grandchildren
                                            = children[0].getElementDescriptors();
                                        MapEntryAdder adder = new MapEntryAdder(method);
                                        for (
                                            int n=0,
                                                noOfGrandChildren = grandchildren.length;
                                            n < noOfGrandChildren;
                                            n++ ) {
                                            if ( "key".equals(
                                                    grandchildren[n].getLocalName() ) ) {
                                           
                                                grandchildren[n].setUpdater(
                                                                adder.getKeyUpdater() );
                                                grandchildren[n].setSingularPropertyType(
                                                                types[0] );
                                                if ( log.isTraceEnabled() ) {
                                                    log.trace(
                                                        "Key descriptor: " + grandchildren[n]);
                                                }                                              
                                               
                                            } else if (
                                                "value".equals(
                                                    grandchildren[n].getLocalName() ) ) {

                                                grandchildren[n].setUpdater(
                                                                    adder.getValueUpdater() );
                                                grandchildren[n].setSingularPropertyType(
                                                                    types[1] );
                                                if ( log.isTraceEnabled() ) {
                                                    log.trace(
                                                        "Value descriptor: " + grandchildren[n]);
View Full Code Here

Examples of org.apache.commons.betwixt.expression.MapEntryAdder

                                    } else {
                                        // loop through grandchildren
                                        // adding updaters for key and value
                                        ElementDescriptor[] grandchildren
                                            = children[0].getElementDescriptors();
                                        MapEntryAdder adder = new MapEntryAdder(method);
                                        for (
                                            int n=0,
                                                noOfGrandChildren = grandchildren.length;
                                            n < noOfGrandChildren;
                                            n++ ) {
                                            if ( "key".equals(
                                                    grandchildren[n].getLocalName() ) ) {
                                           
                                                grandchildren[n].setUpdater(
                                                                adder.getKeyUpdater() );
                                                grandchildren[n].setSingularPropertyType(
                                                                types[0] );
                                                if ( log.isTraceEnabled() ) {
                                                    log.trace(
                                                        "Key descriptor: " + grandchildren[n]);
                                                }                                              
                                               
                                            } else if (
                                                "value".equals(
                                                    grandchildren[n].getLocalName() ) ) {

                                                grandchildren[n].setUpdater(
                                                                    adder.getValueUpdater() );
                                                grandchildren[n].setSingularPropertyType(
                                                                    types[1] );
                                                if ( log.isTraceEnabled() ) {
                                                    log.trace(
                                                        "Value descriptor: " + grandchildren[n]);
View Full Code Here

Examples of org.apache.commons.betwixt.expression.MapEntryAdder

                                    } else {
                                        // loop through grandchildren
                                        // adding updaters for key and value
                                        ElementDescriptor[] grandchildren
                                            = children[0].getElementDescriptors();
                                        MapEntryAdder adder = new MapEntryAdder(method);
                                        for (
                                            int n=0,
                                                noOfGrandChildren = grandchildren.length;
                                            n < noOfGrandChildren;
                                            n++ ) {
                                            if ( "key".equals(
                                                    grandchildren[n].getLocalName() ) ) {
                                           
                                                grandchildren[n].setUpdater(
                                                                adder.getKeyUpdater() );
                                                grandchildren[n].setSingularPropertyType(
                                                                types[0] );
                                                if ( log.isTraceEnabled() ) {
                                                    log.trace(
                                                        "Key descriptor: " + grandchildren[n]);
                                                }                                              
                                               
                                            } else if (
                                                "value".equals(
                                                    grandchildren[n].getLocalName() ) ) {

                                                grandchildren[n].setUpdater(
                                                                    adder.getValueUpdater() );
                                                grandchildren[n].setSingularPropertyType(
                                                                    types[1] );
                                                if ( log.isTraceEnabled() ) {
                                                    log.trace(
                                                        "Value descriptor: " + grandchildren[n]);
View Full Code Here

Examples of org.apache.commons.betwixt.expression.MapEntryAdder

                Class keyType = types[0];
                Class valueType = types[1];
               
                // loop through children
                // adding updaters for key and value
                MapEntryAdder adder = new MapEntryAdder(twinParameterAdderMethod);
                for (
                    int n=0,
                        noOfGrandChildren = children.length;
                    n < noOfGrandChildren;
                    n++ ) {
                    if ( "key".equals( children[n].getLocalName() ) ) {
                                     
                        children[n].setUpdater( adder.getKeyUpdater() );
                        children[n].setSingularPropertyTypekeyType );
                        if (children[n].getPropertyType() == null) {
                            children[n].setPropertyType( valueType );
                        }
                        if ( isPrimitiveType(keyType) ) {
                            children[n].setHollow(false);
                        }
                        if ( getLog().isTraceEnabled() ) {
                            getLog().trace( "Key descriptor: " + children[n]);
                        }                                              
                                               
                    } else if ( "value".equals( children[n].getLocalName() ) ) {

                        children[n].setUpdater( adder.getValueUpdater() );
                        children[n].setSingularPropertyType( valueType );
                        if (children[n].getPropertyType() == null) {
                            children[n].setPropertyType( valueType );
                        }
                        if ( isPrimitiveType( valueType) ) {
View Full Code Here

Examples of org.apache.commons.betwixt.expression.MapEntryAdder

                Class keyType = types[0];
                Class valueType = types[1];
               
                // loop through children
                // adding updaters for key and value
                MapEntryAdder adder = new MapEntryAdder(twinParameterAdderMethod);
                for (
                    int n=0,
                        noOfGrandChildren = children.length;
                    n < noOfGrandChildren;
                    n++ ) {
                    if ( "key".equals( children[n].getLocalName() ) ) {
                                     
                        children[n].setUpdater( adder.getKeyUpdater() );
                        children[n].setSingularPropertyTypekeyType );
                        if (children[n].getPropertyType() == null) {
                            children[n].setPropertyType( valueType );
                        }
                        if ( isPrimitiveType(keyType) ) {
                            children[n].setHollow(false);
                        }
                        if ( getLog().isTraceEnabled() ) {
                            getLog().trace( "Key descriptor: " + children[n]);
                        }                                              
                                               
                    } else if ( "value".equals( children[n].getLocalName() ) ) {

                        children[n].setUpdater( adder.getValueUpdater() );
                        children[n].setSingularPropertyType( valueType );
                        if (children[n].getPropertyType() == null) {
                            children[n].setPropertyType( valueType );
                        }
                        if ( isPrimitiveType( valueType) ) {
View Full Code Here

Examples of org.apache.commons.betwixt.expression.MapEntryAdder

                                    } else {
                                        // loop through grandchildren
                                        // adding updaters for key and value
                                        ElementDescriptor[] grandchildren
                                            = children[0].getElementDescriptors();
                                        MapEntryAdder adder = new MapEntryAdder(method);
                                        for (
                                            int n=0,
                                                noOfGrandChildren = grandchildren.length;
                                            n < noOfGrandChildren;
                                            n++ ) {
                                            if ( "key".equals(
                                                    grandchildren[n].getLocalName() ) ) {
                                           
                                                grandchildren[n].setUpdater(
                                                                adder.getKeyUpdater() );
                                                grandchildren[n].setSingularPropertyType(
                                                                types[0] );
                                                if ( log.isTraceEnabled() ) {
                                                    log.trace(
                                                        "Key descriptor: " + grandchildren[n]);
                                                }                                              
                                               
                                            } else if (
                                                "value".equals(
                                                    grandchildren[n].getLocalName() ) ) {

                                                grandchildren[n].setUpdater(
                                                                    adder.getValueUpdater() );
                                                grandchildren[n].setSingularPropertyType(
                                                                    types[1] );
                                                if ( log.isTraceEnabled() ) {
                                                    log.trace(
                                                        "Value descriptor: " + grandchildren[n]);
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.