com.github.matheusesoft.alm.api.model.ReleaseCycles Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alm-rest-api Show documentation
Show all versions of alm-rest-api Show documentation
A simple Java API client to connect to HP ALM using REST service
The newest version!
package com.github.matheusesoft.alm.api.model;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "Entities")
@XmlAccessorType(XmlAccessType.FIELD)
public class ReleaseCycles {
@XmlElementRef(name = "Entity", type = ReleaseCycle.class)
private List entities;
public ReleaseCycles() {
this(new ArrayList());
}
public ReleaseCycles(Collection entities) {
if (entities instanceof List) {
this.entities = (List) entities;
} else {
this.entities = new ArrayList(entities);
}
}
public List entities() {
return entities;
}
public void entities(List entities) {
this.entities = entities;
}
public void addEntity(ReleaseCycle entity) {
entities.add(entity);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy