Examples of walkElement()


Examples of org.jibx.schema.TreeWalker.walkElement()

            }
           
        };
        TreeWalker wlkr = new TreeWalker(null, new SchemaContextTracker());
        for (Iterator iter = m_validationContext.iterateSchemas(); iter.hasNext();) {
            wlkr.walkElement((SchemaElement)iter.next(), visitor);
        }
       
        // validate the customizations
        m_global.validate(m_validationContext);
       
View Full Code Here

Examples of org.jibx.schema.TreeWalker.walkElement()

                    if (parent instanceof SchemaElement) {
                       
                        // expand reference from this component
                        s_logger.debug(" adding reference closure for " + SchemaUtils.describeComponent(ref));
                        m_tracker.setNameRegister(((SchemaElement)parent).getRegister());
                        wlkr.walkElement(ref, this);
                       
                    } else {
                        s_logger.debug(" reference closure with non-global definition " + ref);
                    }
                }
View Full Code Here

Examples of org.jibx.schema.TreeWalker.walkElement()

        DefinitionItem definition = new DefinitionItem(comp);
        m_group = definition;
        m_global = (GlobalExtension)comp.getExtension();
        m_global.setDefinition(definition);
        TreeWalker wlkr = new TreeWalker(null, new SchemaContextTracker());
        wlkr.walkElement(comp, this);
        if (s_logger.isDebugEnabled()) {
            m_nestingDepth--;
            s_logger.debug(SchemaUtils.getIndentation(m_nestingDepth) + "Completed structure for global definition " +
                SchemaUtils.describeComponent(comp) + " with " + m_group.getChildCount() + " child items");
        }
View Full Code Here

Examples of org.jibx.schema.TreeWalker.walkElement()

        SchemaVisitor visitor = new FacetRemoverVisitor(this);
        for (Iterator iter = globals.iterator(); iter.hasNext();) {
            OpenAttrBase global = (OpenAttrBase)iter.next();
            ComponentExtension exten = (ComponentExtension)global.getExtension();
            if (exten != null && !exten.isRemoved()) {
                wlkr.walkElement(global, visitor);
            }
        }
    }

    /**
 
View Full Code Here

Examples of org.jibx.schema.TreeWalker.walkElement()

            }
           
        };
        TreeWalker wlkr = new TreeWalker(null, new SchemaContextTracker());
        for (Iterator iter = m_validationContext.iterateSchemas(); iter.hasNext();) {
            wlkr.walkElement((SchemaElement)iter.next(), visitor);
        }
       
//        // TODO: test code for annotating schema
//        try {
//            DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
View Full Code Here

Examples of org.jibx.schema.TreeWalker.walkElement()

                }
               
                // write the documentation
                DocumentationVisitor visitor = new DocumentationVisitor(comptoclas, clasname, comp, dropanno, ref,
                    indexes, prefixes);
                walker.walkElement(comp, visitor);
                strwriter.flush();
               
            }
           
            // convert generated schema fragment to plain text for embedding
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.