Package ca.ecliptical.emf.xpath

Examples of ca.ecliptical.emf.xpath.EMFXPath.selectNodes()


 
  public final void testNamespaces() throws Exception {
    EMFXPath xpath = new EMFXPath("/resources/contents/t:test/t:subTest[1]/x:value/namespace::*");
    xpath.addNamespace("t", "urn:test");
    xpath.addNamespace("x", XMLTypePackage.eNS_URI);
    List list = xpath.selectNodes(fixture);
    assertNotNull(list);
    assertEquals(2, list.size());
    assertTrue(list.get(0) instanceof EPackage);
    assertTrue(list.get(1) instanceof EPackage);
    HashSet values = new HashSet(2);
View Full Code Here


    xpath.addNamespace("iaml", ModelPackage.eNS_URI);
    xpath.addNamespace("iaml.domain", DomainPackage.eNS_URI);
    xpath.addNamespace("iaml.scopes", ScopesPackage.eNS_URI);
    xpath.addNamespace("iaml.visual", VisualPackage.eNS_URI);
    xpath.addNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
    return xpath.selectNodes(root);
  }

  /**
   * Helper method: print out a list of objects
   * @param obj
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.