Package org.apache.commons.betwixt.io.read

Examples of org.apache.commons.betwixt.io.read.MappingAction


                }
            }

            context.pushElement(name);
           
            MappingAction nextAction =
                nextAction(namespace, name, attributes, context);

            context.pushMappingAction(nextAction);
        }
View Full Code Here


            String name,
            Attributes attributes,
            ReadContext context)
            throws Exception {
               
            MappingAction result = null;
            MappingAction lastAction = context.currentMappingAction();
            if (lastAction == null)
            {
                result =  BeanBindAction.INSTANCE;  
            } else {
               
                result = lastAction.next(namespace, name, attributes, context);
            }
            return result.begin(namespace, name, attributes, context);
        }
View Full Code Here

        public void body(String namespace, String name, String text)
            throws Exception {

            if (log.isTraceEnabled()) log.trace("[BRS] Body with text " + text);
            if (digester.getCount() > 0) {
                MappingAction action = context.currentMappingAction();
                action.body(text, context);
            } else {
                log.trace("[BRS] ZERO COUNT");
            }
        }
View Full Code Here

        * Process the end of this element.
        * This is delegated to the current <code>MappingAction</code>.
        */
        public void end(String namespace, String name) throws Exception {

            MappingAction action = context.popMappingAction();
            action.end(context);
        }
View Full Code Here

                            String namespace,
                            String name,
                            Attributes attributes,
                            ReadContext context)
        throws Exception {
        MappingAction result = MappingAction.EMPTY;
           
        ElementDescriptor activeDescriptor = context.getCurrentDescriptor();
        if (activeDescriptor != null) {
            if (activeDescriptor.isHollow()) {
                if (isArrayDescriptor(activeDescriptor)) {
View Full Code Here

        context.pushElement("LibraryBeanWithArraySetter");  
        context.markClassMap(LibraryBeanWithArraySetter.class);
        context.pushElement("books");
       
        ActionMappingStrategy strategy = ActionMappingStrategy.DEFAULT;
        MappingAction action = strategy.getMappingAction("", "books", new AttributesImpl(), context);
        assertTrue("Should be mapped to an array bind action", action instanceof ArrayBindAction);
    }
View Full Code Here

        context.pushElement("LibraryBeanWithArraySetter");  
        context.markClassMap(LibraryBeanWithArraySetter.class);
        context.pushElement("books");
       
        ActionMappingStrategy strategy = ActionMappingStrategy.DEFAULT;
        MappingAction action = strategy.getMappingAction("", "books", new AttributesImpl(), context);
        assertTrue("Should be mapped to an array bind action", action instanceof ArrayBindAction);
    }
View Full Code Here

                }
            }

            context.pushElement(name);
           
            MappingAction nextAction =
                nextAction(namespace, name, attributes, context);

            context.pushMappingAction(nextAction);
        }
View Full Code Here

            String name,
            Attributes attributes,
            ReadContext context)
            throws Exception {
               
            MappingAction result = null;
            MappingAction lastAction = context.currentMappingAction();
            if (lastAction == null)
            {
                result =  BeanBindAction.INSTANCE;  
            } else {
               
                result = lastAction.next(namespace, name, attributes, context);
            }
            return result.begin(namespace, name, attributes, context);
        }
View Full Code Here

        public void body(String namespace, String name, String text)
            throws Exception {

            log.trace("[BRS] Body with text " + text);
            if (digester.getCount() > 0) {
                MappingAction action = context.currentMappingAction();
                action.body(text, context);
            } else {
                log.trace("[BRS] ZERO COUNT");
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.commons.betwixt.io.read.MappingAction

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.