Examples of DOMWalker


Examples of com.volantis.mcs.dom.DOMWalker

                OutputStyledElement outputElement =
                        new OutputStyledElement(element, outputStyles);
                outputElementList.add(outputElement);
            }
        };
        DOMWalker walker = new DOMWalker(visitor);
        walker.walk(dom);
        return outputElementList;
    }
View Full Code Here

Examples of com.volantis.mcs.dom.DOMWalker

        indent = "";
    }

    public String debug(Document document) {

        DOMWalker walker = new DOMWalker(this);
        walker.walk(document);
        return debug.toString();
    }
View Full Code Here

Examples of com.volantis.mcs.dom.DOMWalker

        return debug.toString();
    }

    public String debug(Element element) {

        DOMWalker walker = new DOMWalker(this);
        walker.walk(element);
        return debug.toString();
    }
View Full Code Here

Examples of com.volantis.mcs.dom.DOMWalker

        stylingEngine = factory.createStylingEngine(inlineCompilerFactory);
    }

    public void style(Document document) {
        DOMWalker walker = new DOMWalker(this);
        walker.walk(document);
    }
View Full Code Here

Examples of com.volantis.mcs.dom.DOMWalker

                        altTextBuffer.append(
                            text.getContents(), 0, text.getLength());
                    }
                }
            };
            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);
View Full Code Here

Examples of com.volantis.mcs.dom.DOMWalker

                    this.foundElement = element;
                }
            }
        };

        final DOMWalker walker = new DOMWalker(visitor);
        walker.walk(dom);

        return visitor.foundElement;
    }
View Full Code Here

Examples of com.volantis.mcs.dom.DOMWalker

        DocumentStyler styler = new DocumentStyler(stylingEngine,
                XDIMESchemata.CDM_NAMESPACE);
        styler.style(document);

        // Make sure that every element has styles set on it.
        DOMWalker walker = new DOMWalker(new WalkingDOMVisitorStub() {
            // Javadoc inherited.
            public void visit(Element element) {
                if (element.getStyles() == null) {
                    throw new IllegalArgumentException(
                            "element " + element.getName() + " has no styles");
                }
            }
        });
        walker.walk(document);

        DOMTransformer transformer = new DeferredInheritTransformer();
        document = transformer.transform(null, document);

        return document;
View Full Code Here

Examples of com.volantis.mcs.dom.DOMWalker

        logEntry(protocol, document);

        WalkingDOMVisitor visitor = getWalkingDOMVisitor(protocol);
        if (visitor != null) {
            DOMWalker walker = new DOMWalker(visitor);
            walker.walk(document);
        }

        logExit(protocol, document);

        return document;
View Full Code Here

Examples of com.volantis.mcs.dom.DOMWalker

                    result[0] = true;
                }
            };

            new DOMWalker(visitor) {

                // javadoc inherited
                protected void assertElementProperties(Element element) {
                    // no-op
View Full Code Here

Examples of com.volantis.mcs.dom.DOMWalker

        logDOM(protocol,
                 document,
               "Incoming DOM to transform (CornersTransformer)");

        //find body element
        DOMWalker walkerBody = new DOMWalker(visitorBody);
        walkerBody.walk(document);
        visitor.setBodyElement(visitorBody.getBodyElement());           
               
        DOMWalker walker = new DOMWalker(visitor);
        walker.walk(document);

        // Output the transformed DOM if debug for this class has been
        // requested via Log4J configuration.
        logDOM(protocol,
               document,
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.