
org.rundeck.api.parser.ProjectConfigPropertyParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rundeck-api-java-client Show documentation
Show all versions of rundeck-api-java-client Show documentation
Java client for the Rundeck REST API
package org.rundeck.api.parser;
import org.dom4j.Node;
import org.rundeck.api.domain.ConfigProperty;
/**
* ProjectConfigPropertyParser parses a {@literal } element representing
* a configuration property.
*
* @author greg
* @since 2014-03-07
*/
public class ProjectConfigPropertyParser extends BaseXpathParser {
private String xpath;
public ProjectConfigPropertyParser() {
super();
}
public ProjectConfigPropertyParser(final String xpath) {
super(xpath);
}
@Override
public ConfigProperty parse(final Node propnode) {
final String key = propnode.valueOf("@key");
final String value = propnode.valueOf("@value");
final ConfigProperty config = new ConfigProperty();
config.setKey(key);
config.setValue(value);
return config;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy