Examples of topChildren()


Examples of org.jibx.binding.model.BindingElement.topChildren()

        gen.generate(null, types);
        gen.finish("binding");
        BindingHolder hold = gen.getBinding(null);
        assertNotNull("no-namespace binding", hold);
        BindingElement binding = hold.getBinding();
        ArrayList childs = binding.topChildren();
        assertEquals("child count", 2, childs.size());
        Object child = childs.get(0);
        assertTrue("child type", child instanceof MappingElement);
        MappingElementBase mapping = (MappingElementBase)child;
        assertEquals("mapped class", mapping.getClassName(), "DefaultPackageClass");
View Full Code Here

Examples of org.jibx.binding.model.BindingElement.topChildren()

        gen.generate(null, types);
        gen.finish("binding");
        BindingHolder hold = gen.getBinding("http://jibx.org/binding/generator");
        assertNotNull("default namespace binding", hold);
        BindingElement binding = hold.getBinding();
        ArrayList childs = binding.topChildren();
        assertEquals("child count", 3, childs.size());
        Object child = childs.get(1);
        assertTrue("child type", child instanceof MappingElement);
        MappingElementBase mapping = (MappingElementBase)child;
        assertEquals("mapped class", mapping.getClassName(), "org.jibx.binding.generator.DataClass1");
View Full Code Here

Examples of org.jibx.binding.model.BindingElement.topChildren()

        gen.generate(null, types);
        gen.finish("binding");
        BindingHolder hold = gen.getBinding("http://jibx.org/binding/generator");
        assertNotNull("default namespace binding", hold);
        BindingElement binding = hold.getBinding();
        ArrayList childs = binding.topChildren();
        assertEquals("child count", 5, childs.size());
        Object child = childs.get(1);
        assertTrue("child type", child instanceof MappingElement);
        MappingElementBase mapping = (MappingElementBase)child;
        assertTrue("expected abstract mapping first", mapping.isAbstract());
View Full Code Here

Examples of org.jibx.binding.model.BindingElement.topChildren()

        gen.generate(null, types);
        gen.finish("binding");
        BindingHolder hold = gen.getBinding("http://www.jibx.org/test");
        assertNotNull("specified namespace binding", hold);
        BindingElement binding = hold.getBinding();
        ArrayList childs = binding.topChildren();
        assertEquals("child count", 5, childs.size());
        Object child = childs.get(1);
        assertTrue("child type", child instanceof MappingElement);
        MappingElementBase mapping = (MappingElementBase)child;
        assertTrue("expected abstract mapping first", mapping.isAbstract());
View Full Code Here

Examples of org.jibx.binding.model.MappingElementBase.topChildren()

        finishClass(m_bindingElement);
       
        // check for empty <format> elements to be deleted from <mapping>
        if (m_bindingElement instanceof MappingElement) {
            MappingElementBase mapping = (MappingElementBase)m_bindingElement;
            ArrayList childs = mapping.topChildren();
            int fill = 0;
            for (int i = 0; i < childs.size(); i++) {
                Object child = childs.get(i);
                boolean keep = true;
                if (child instanceof FormatElement) {
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.