ElencoIdPolicyAttive.java

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

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import java.io.Serializable;
  27. import java.util.ArrayList;
  28. import java.util.List;


  29. /** <p>Java class for elenco-id-policy-attive complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="elenco-id-policy-attive"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="id-active-policy" type="{http://www.openspcoop2.org/core/controllo_traffico}id-active-policy" minOccurs="0" maxOccurs="unbounded"/&gt;
  37.  *      &lt;/sequence&gt;
  38.  * &lt;/complexType&gt;
  39.  * </pre>
  40.  *
  41.  * @version $Rev$, $Date$
  42.  *
  43.  * @author Poli Andrea (poli@link.it)
  44.  * @author $Author$
  45.  * */

  46. @XmlAccessorType(XmlAccessType.FIELD)
  47. @XmlType(name = "elenco-id-policy-attive",
  48.   propOrder = {
  49.     "idActivePolicy"
  50.   }
  51. )

  52. @XmlRootElement(name = "elenco-id-policy-attive")

  53. public class ElencoIdPolicyAttive extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  54.   public ElencoIdPolicyAttive() {
  55.     super();
  56.   }

  57.   public void addIdActivePolicy(IdActivePolicy idActivePolicy) {
  58.     this.idActivePolicy.add(idActivePolicy);
  59.   }

  60.   public IdActivePolicy getIdActivePolicy(int index) {
  61.     return this.idActivePolicy.get( index );
  62.   }

  63.   public IdActivePolicy removeIdActivePolicy(int index) {
  64.     return this.idActivePolicy.remove( index );
  65.   }

  66.   public List<IdActivePolicy> getIdActivePolicyList() {
  67.     return this.idActivePolicy;
  68.   }

  69.   public void setIdActivePolicyList(List<IdActivePolicy> idActivePolicy) {
  70.     this.idActivePolicy=idActivePolicy;
  71.   }

  72.   public int sizeIdActivePolicyList() {
  73.     return this.idActivePolicy.size();
  74.   }

  75.   private static final long serialVersionUID = 1L;



  76.   @XmlElement(name="id-active-policy",required=true,nillable=false)
  77.   private List<IdActivePolicy> idActivePolicy = new ArrayList<>();

  78.   /**
  79.    * Use method getIdActivePolicyList
  80.    * @return List&lt;IdActivePolicy&gt;
  81.   */
  82.   public List<IdActivePolicy> getIdActivePolicy() {
  83.     return this.getIdActivePolicyList();
  84.   }

  85.   /**
  86.    * Use method setIdActivePolicyList
  87.    * @param idActivePolicy List&lt;IdActivePolicy&gt;
  88.   */
  89.   public void setIdActivePolicy(List<IdActivePolicy> idActivePolicy) {
  90.     this.setIdActivePolicyList(idActivePolicy);
  91.   }

  92.   /**
  93.    * Use method sizeIdActivePolicyList
  94.    * @return lunghezza della lista
  95.   */
  96.   public int sizeIdActivePolicy() {
  97.     return this.sizeIdActivePolicyList();
  98.   }

  99. }