Examples of forEachChild()


Examples of com.mycila.xmltool.XMLTag.forEachChild()

        ValidationResult res = tag.validate(HEADER_STYLES_SCHEMA);
        if (res.hasError()) {
            throw new LicenseManagerException("Style definition at '" + styleLocation + "' is not valid: " + res.getErrorMessages()[0]);
        }
        final String ns = tag.getPefix("http://mycila.com/license/styles/1.0");
        tag.forEachChild(new CallBack() {
            public void execute(XMLTag doc) {
                Builder builder = add(doc.getAttribute("name"))
                        .defineBegining(doc.getTextOrCDATA("%1$s:definition/%1$s:begining", ns))
                        .defineStartLine(doc.getTextOrCDATA("%1$s:definition/%1$s:startLine", ns))
                        .defineEnding(doc.getTextOrCDATA("%1$s:definition/%1$s:ending", ns))
View Full Code Here

Examples of com.mycila.xmltool.XMLTag.forEachChild()

        XMLTag tag = XMLDoc.from(mappingLocation, false);
        ValidationResult res = tag.validate(DOCUMENT_TYPES_SCHEMA);
        if (res.hasError()) {
            throw new LicenseManagerException("Mapping definition at '" + mappingLocation + "' is not valid: " + res.getErrorMessages()[0]);
        }
        tag.forEachChild(new CallBack() {
            public void execute(XMLTag doc) {
                map(doc.getAttribute("extension")).to(headerStyles.getByName(doc.getAttribute("style")));
            }
        });
        return this;
View Full Code Here

Examples of com.volantis.mcs.dom.Document.forEachChild()

                               ids.add(id));
                }
                element.forEachChild(this);
            }
        };
        dom.forEachChild(visitor);   
    }
   
    /**
     * Test that menus inside forms get promoted out.
     */
View Full Code Here

Examples of com.volantis.mcs.dom.Document.forEachChild()

        // Visit all the nodes and examine how many time each node has been
        // processed.
        VisitationCheckerDOMVisitor visitationChecker =
                new VisitationCheckerDOMVisitor();

        dom.forEachChild(visitationChecker);

      //  System.out.println((DOMUtilities.toString(dom.getContentRoot(),
     //           protocol)));

        // TODO: we have had bugs where nodes were not visited, so fix this
View Full Code Here

Examples of com.volantis.mcs.dom.Element.forEachChild()

            if (pushedDown) {
                // Track this element (closed).
                tracker.closed(elementName);

                removeElement(element);
                parent.forEachChild(this);

                terminateTraversal = true;
            } else {
                // Continue processing (element hasn't been removed or
                // pushed down).
View Full Code Here

Examples of com.volantis.mcs.dom.Element.forEachChild()

            };
            DOMWalker walker = new DOMWalker(visitor);

            // We can't pass the root node into walk() as the root node
            // has no name and that results in an exception.
            root.forEachChild(walker);

        }
        return altTextBuffer.toString();
    }
View Full Code Here

Examples of com.volantis.mcs.wbdom.WBDOMElement.forEachChild()

        try {
            // Iterate over the children, ignoring their parent.
            VisitorChildrenIterator childrenIterator =
                    new VisitorChildrenIterator(sizeVisitor);
            if (delement.hasChildren()) {
                delement.forEachChild(childrenIterator);
            }
        } catch (WBDOMException e) {
            // MCSDI0019X="Unable to calculate shard link cost"
            throw new DissectionException(
                        exceptionLocalizer.format(
View Full Code Here

Examples of com.volantis.mcs.wbdom.dissection.DissectableSpecialElement.forEachChild()

        // Iterate over the children, ignoring their parent.
        VisitorChildrenIterator childrenSerialiser =
            new VisitorChildrenIterator(visitor);
        try {
            if (delement.hasChildren()) {
                delement.forEachChild(childrenSerialiser);
            }
        } catch (WBDOMException e) {
            throw new DissectionException(e);
        }
    }
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.