Package edu.cmu.cs.fusion.constraint

Examples of edu.cmu.cs.fusion.constraint.XMLContext.addType()


  private XMLContext createContext(String absolutePath, Document doc) {
    XMLContext context = new XMLContext(absolutePath);
    NodeList imports = doc.getDocumentElement().getElementsByTagName(IMPORT);
    for (int ndx = 0; ndx < imports.getLength(); ndx++) {
      Element importElement = (Element) imports.item(ndx);
      context.addType(importElement.getAttribute(NAME));
    }
    return context;
  }
}
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.