All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.matheusesoft.alm.api.model.ReleaseCycles Maven / Gradle / Ivy

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