AccordoCooperazionePartecipanti.java

/*
 * GovWay - A customizable API Gateway 
 * https://govway.org
 * 
 * Copyright (c) 2005-2024 Link.it srl (https://link.it).
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3, as published by
 * the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
package org.openspcoop2.core.registry;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


/** <p>Java class for accordo-cooperazione-partecipanti complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="accordo-cooperazione-partecipanti"&gt;
 * 		&lt;sequence&gt;
 * 			&lt;element name="soggetto-partecipante" type="{http://www.openspcoop2.org/core/registry}id-soggetto" minOccurs="0" maxOccurs="unbounded"/&gt;
 * 		&lt;/sequence&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * @version $Rev$, $Date$
 * 
 * @author Poli Andrea (poli@link.it)
 * @author $Author$
 * */

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "accordo-cooperazione-partecipanti", 
  propOrder = {
  	"soggettoPartecipante"
  }
)

@XmlRootElement(name = "accordo-cooperazione-partecipanti")

public class AccordoCooperazionePartecipanti extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  public AccordoCooperazionePartecipanti() {
    super();
  }

  public void addSoggettoPartecipante(IdSoggetto soggettoPartecipante) {
    this.soggettoPartecipante.add(soggettoPartecipante);
  }

  public IdSoggetto getSoggettoPartecipante(int index) {
    return this.soggettoPartecipante.get( index );
  }

  public IdSoggetto removeSoggettoPartecipante(int index) {
    return this.soggettoPartecipante.remove( index );
  }

  public List<IdSoggetto> getSoggettoPartecipanteList() {
    return this.soggettoPartecipante;
  }

  public void setSoggettoPartecipanteList(List<IdSoggetto> soggettoPartecipante) {
    this.soggettoPartecipante=soggettoPartecipante;
  }

  public int sizeSoggettoPartecipanteList() {
    return this.soggettoPartecipante.size();
  }

  private static final long serialVersionUID = 1L;



  @XmlElement(name="soggetto-partecipante",required=true,nillable=false)
  private List<IdSoggetto> soggettoPartecipante = new ArrayList<>();

  /**
   * Use method getSoggettoPartecipanteList
   * @return List&lt;IdSoggetto&gt;
  */
  public List<IdSoggetto> getSoggettoPartecipante() {
  	return this.getSoggettoPartecipanteList();
  }

  /**
   * Use method setSoggettoPartecipanteList
   * @param soggettoPartecipante List&lt;IdSoggetto&gt;
  */
  public void setSoggettoPartecipante(List<IdSoggetto> soggettoPartecipante) {
  	this.setSoggettoPartecipanteList(soggettoPartecipante);
  }

  /**
   * Use method sizeSoggettoPartecipanteList
   * @return lunghezza della lista
  */
  public int sizeSoggettoPartecipante() {
  	return this.sizeSoggettoPartecipanteList();
  }

}