Search in sources :

Example 6 with Export

use of com.ibm.uma.om.Export in project openj9 by eclipse.

the class ExportsParser method parse.

public static Exports parse(Node node, String containingFile) {
    Exports exports = new Exports(containingFile);
    NamedNodeMap attributes = node.getAttributes();
    exports.setGroup(attributes.getNamedItem("group").getNodeValue());
    NodeList nodeList = node.getChildNodes();
    for (int j = 0; j < nodeList.getLength(); j++) {
        Node item = nodeList.item(j);
        if (item.getNodeName().equalsIgnoreCase("export")) {
            Export export = ExportParser.parse(item, containingFile);
            exports.addExport(export);
        }
    }
    Parser.populatePredicateList(nodeList, exports);
    return exports;
}
Also used : NamedNodeMap(org.w3c.dom.NamedNodeMap) NodeList(org.w3c.dom.NodeList) Node(org.w3c.dom.Node) Export(com.ibm.uma.om.Export) Exports(com.ibm.uma.om.Exports)

Aggregations

Export (com.ibm.uma.om.Export)6 FileAssistant (com.ibm.uma.util.FileAssistant)3 NamedNodeMap (org.w3c.dom.NamedNodeMap)3 NodeList (org.w3c.dom.NodeList)3 Artifact (com.ibm.uma.om.Artifact)2 Library (com.ibm.uma.om.Library)2 Node (org.w3c.dom.Node)2 UMABadPhaseNameException (com.ibm.uma.UMABadPhaseNameException)1 UMAException (com.ibm.uma.UMAException)1 Command (com.ibm.uma.om.Command)1 Dependency (com.ibm.uma.om.Dependency)1 Exports (com.ibm.uma.om.Exports)1 Flag (com.ibm.uma.om.Flag)1 Include (com.ibm.uma.om.Include)1 MakefileStub (com.ibm.uma.om.MakefileStub)1 Object (com.ibm.uma.om.Object)1 Option (com.ibm.uma.om.Option)1 VPath (com.ibm.uma.om.VPath)1 Vector (java.util.Vector)1