com.offbytwo.jenkins.model.ParameterDefinitions Maven / Gradle / Ivy
The newest version!
package com.offbytwo.jenkins.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessOrder;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorOrder;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "parameterDefinitions")
@XmlAccessorOrder(XmlAccessOrder.ALPHABETICAL)
@XmlAccessorType(XmlAccessType.FIELD)
public class ParameterDefinitions {
@XmlElement(name = "hudson.model.StringParameterDefinition")
List stringParams;
public ParameterDefinitions() {
stringParams = new ArrayList();
}
public ParameterDefinitions(List stringParams) {
this.stringParams = stringParams;
}
public List getStringParams() {
return stringParams;
}
public void setStringParams(List stringParams) {
this.stringParams = stringParams;
}
public void addParam(StringParameterDefinition spd) {
stringParams.add(spd);
}
}