Examples of DOMElementVisitor


Examples of com.intellij.util.xml.DomElementVisitor

    if (!element.isValid()) {
      return EMPTY_ARRAY;
    }

    final List<TreeElement> result = new SmartList<TreeElement>();
    DomUtil.acceptAvailableChildren(element, new DomElementVisitor() {
      @Override
      public void visitDomElement(final DomElement domElement) {
        result.add(new StructureViewTreeElement(domElement));
      }
    });
View Full Code Here

Examples of org.milyn.delivery.dom.DOMElementVisitor

 
  private void test_goodscript(SmooksResourceConfiguration config) throws InstantiationException, IllegalArgumentException, IOException, SAXException {
    GroovyContentHandlerFactory creator = new GroovyContentHandlerFactory();
   
    config.setParameter("new-name", "yyy");
    DOMElementVisitor resource = (DOMElementVisitor) creator.create(config);
   
    Document doc = XmlUtil.parseStream(new ByteArrayInputStream("<xxx/>".getBytes()), XmlUtil.VALIDATION_TYPE.NONE, false);
    assertEquals("xxx", doc.getDocumentElement().getTagName());
    resource.visitAfter(doc.getDocumentElement(), null);
    assertEquals("yyy", doc.getDocumentElement().getTagName());
  }
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.