Package org.openiaml.model.xpath

Examples of org.openiaml.model.xpath.IterableElementList.addAll()


  public void testOpenDiagramTargetElement() throws Exception {
    for (String filename : getGenList()) {
      Document doc = getCache().get(filename);
     
      IterableElementList nodes = xpath(doc, "/GenEditorGenerator/diagram/topLevelNodes");
      nodes.addAll(xpath(doc, "/GenEditorGenerator/diagram/links"));
      assertFalse(filename + ": No nodes found", nodes.isEmpty());
     
      for (Element node : nodes) {
        // find the meta element for this node
        Element meta = xpathFirst(node, "modelFacet/metaClass");
View Full Code Here


     
      @Override
      public void execute2(String filename, Document doc) throws Exception {
        // will do both links and nodes
        IterableElementList nodes = xpath(doc, "/GenEditorGenerator/diagram/topLevelNodes");
        nodes.addAll(xpath(doc, "/GenEditorGenerator/diagram/links"));
        assertFalse(filename + ": No nodes found", nodes.isEmpty());
       
        boolean changed = false;
        for (Element node : nodes) {
          // find the meta element for this node
View Full Code Here

      try {
      Document doc = getCache().get(filename);
     
      // will do both links and nodes
      IterableElementList nodes = xpath(doc, "/GenEditorGenerator/diagram/topLevelNodes");
      nodes.addAll(xpath(doc, "/GenEditorGenerator/diagram/links"));
      assertFalse(filename + ": No nodes found", nodes.isEmpty());
     
      for (Element node : nodes) {
        // find the meta element for this node
        Element meta = xpathFirst(node, "modelFacet/metaClass");
View Full Code Here

      List<String> editorIDs = new ArrayList<String>();
      List<String> policyNames = new ArrayList<String>();
     
      // will do both links and nodes
      IterableElementList nodes = xpath(doc, "/GenEditorGenerator/diagram/topLevelNodes");
      nodes.addAll(xpath(doc, "/GenEditorGenerator/diagram/links"));
      assertFalse(filename + ": No nodes found", nodes.isEmpty());
     
      for (Element node : nodes) {
        // does this have a behaviour?
        IterableElementList beh = xpath(node, "behaviour");
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.