1 package org.rundeck.api.parser;
2
3 import org.dom4j.Node;
4 import org.rundeck.api.domain.RundeckProject;
5
6
7
8
9
10
11
12 public class ProjectParserV11 extends ProjectParser {
13 public ProjectParserV11() {
14 }
15
16 public ProjectParserV11(final String xpath) {
17 super(xpath);
18 }
19
20 @Override
21 public RundeckProject parse(final Node projectNode) {
22 final RundeckProject rundeckProject = super.parse(projectNode);
23 final Node config1 = projectNode.selectSingleNode("config");
24 if (config1 == null) {
25 return rundeckProject;
26 }
27
28 rundeckProject.setProjectConfig(new ProjectConfigParser().parseXmlNode(config1));
29
30 return rundeckProject;
31 }
32 }