Package ca.ecliptical.emf.xpath

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


  }
 
  public final void testStringValueOf() throws Exception {
    EMFXPath xpath = new EMFXPath("lib:writers[lib:books[.=//lib:books[lib:category='Mystery']]]/lib:name");
    xpath.addNamespace("lib", LibraryPackage.eNS_URI);
    String result = xpath.stringValueOf(fixture);
    assertEquals("Writer 1", result);
  }
 
  public final void testSum() throws Exception {
    EMFXPath xpath = new EMFXPath("sum(lib:books/lib:pages)");
View Full Code Here


  }

  public final void testEClassFunction() throws Exception {
    EMFXPath xpath = new EMFXPath("eClass()/ecore:name");
    xpath.addNamespace("ecore", EcorePackage.eNS_URI);
    String eClassName = xpath.stringValueOf(fixture);
    assertEquals("Library", eClassName);
  }
 
  public static void main(String[] args) throws Exception {
    EMFXPathTest test = new EMFXPathTest(null);
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.