
org.rundeck.api.parser.WorkflowStepContextStateParser 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.WorkflowStepContextState;
/**
* $INTERFACE is ... User: greg Date: 1/17/14 Time: 12:39 PM
*/
public class WorkflowStepContextStateParser implements XmlNodeParser {
WorkflowStepContextState inherit;
public WorkflowStepContextStateParser(WorkflowStepContextState inherit) {
this.inherit = inherit;
}
@Override
public WorkflowStepContextState parseXmlNode(Node node) {
WorkflowStepContextState workflowStepState = new WorkflowStepContextState();
if(null!=inherit) {
workflowStepState.setStepNum(inherit.getStepNum());
workflowStepState.setStepContextId(inherit.getStepContextId());
}
BaseStateParser.parseBaseState(node, workflowStepState);
return workflowStepState;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy