StatesType.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 it.gov.spcoop.sica.wsbl;

  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 statesType complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="statesType"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="state-initial" type="{http://spcoop.gov.it/sica/wsbl}StateTypeInitial" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="state-final" type="{http://spcoop.gov.it/sica/wsbl}StateTypeFinal" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="state" type="{http://spcoop.gov.it/sica/wsbl}StateTypeNormal" minOccurs="1" maxOccurs="unbounded"/&gt;
  39.  *      &lt;/sequence&gt;
  40.  * &lt;/complexType&gt;
  41.  * </pre>
  42.  *
  43.  * @version $Rev$, $Date$
  44.  *
  45.  * @author Poli Andrea (poli@link.it)
  46.  * @author $Author$
  47.  * */

  48. @XmlAccessorType(XmlAccessType.FIELD)
  49. @XmlType(name = "statesType",
  50.   propOrder = {
  51.     "stateInitial",
  52.     "stateFinal",
  53.     "state"
  54.   }
  55. )

  56. @XmlRootElement(name = "statesType")

  57. public class StatesType extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  58.   public StatesType() {
  59.     super();
  60.   }

  61.   public StateTypeInitial getStateInitial() {
  62.     return this.stateInitial;
  63.   }

  64.   public void setStateInitial(StateTypeInitial stateInitial) {
  65.     this.stateInitial = stateInitial;
  66.   }

  67.   public StateTypeFinal getStateFinal() {
  68.     return this.stateFinal;
  69.   }

  70.   public void setStateFinal(StateTypeFinal stateFinal) {
  71.     this.stateFinal = stateFinal;
  72.   }

  73.   public void addState(StateTypeNormal state) {
  74.     this.state.add(state);
  75.   }

  76.   public StateTypeNormal getState(int index) {
  77.     return this.state.get( index );
  78.   }

  79.   public StateTypeNormal removeState(int index) {
  80.     return this.state.remove( index );
  81.   }

  82.   public List<StateTypeNormal> getStateList() {
  83.     return this.state;
  84.   }

  85.   public void setStateList(List<StateTypeNormal> state) {
  86.     this.state=state;
  87.   }

  88.   public int sizeStateList() {
  89.     return this.state.size();
  90.   }

  91.   private static final long serialVersionUID = 1L;



  92.   @XmlElement(name="state-initial",required=true,nillable=false)
  93.   protected StateTypeInitial stateInitial;

  94.   @XmlElement(name="state-final",required=true,nillable=false)
  95.   protected StateTypeFinal stateFinal;

  96.   @XmlElement(name="state",required=true,nillable=false)
  97.   private List<StateTypeNormal> state = new ArrayList<>();

  98.   /**
  99.    * Use method getStateList
  100.    * @return List&lt;StateTypeNormal&gt;
  101.   */
  102.   public List<StateTypeNormal> getState() {
  103.     return this.getStateList();
  104.   }

  105.   /**
  106.    * Use method setStateList
  107.    * @param state List&lt;StateTypeNormal&gt;
  108.   */
  109.   public void setState(List<StateTypeNormal> state) {
  110.     this.setStateList(state);
  111.   }

  112.   /**
  113.    * Use method sizeStateList
  114.    * @return lunghezza della lista
  115.   */
  116.   public int sizeState() {
  117.     return this.sizeStateList();
  118.   }

  119. }