RoutingTableDestinazione.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.config;

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


  30. /** <p>Java class for routing-table-destinazione complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="routing-table-destinazione"&gt;
  36.  *      &lt;sequence&gt;
  37.  *          &lt;element name="route" type="{http://www.openspcoop2.org/core/config}route" minOccurs="1" maxOccurs="unbounded"/&gt;
  38.  *      &lt;/sequence&gt;
  39.  *      &lt;attribute name="tipo" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  40.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  41.  * &lt;/complexType&gt;
  42.  * </pre>
  43.  *
  44.  * @version $Rev$, $Date$
  45.  *
  46.  * @author Poli Andrea (poli@link.it)
  47.  * @author $Author$
  48.  * */

  49. @XmlAccessorType(XmlAccessType.FIELD)
  50. @XmlType(name = "routing-table-destinazione",
  51.   propOrder = {
  52.     "route"
  53.   }
  54. )

  55. @XmlRootElement(name = "routing-table-destinazione")

  56. public class RoutingTableDestinazione extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  57.   public RoutingTableDestinazione() {
  58.     super();
  59.   }

  60.   public void addRoute(Route route) {
  61.     this.route.add(route);
  62.   }

  63.   public Route getRoute(int index) {
  64.     return this.route.get( index );
  65.   }

  66.   public Route removeRoute(int index) {
  67.     return this.route.remove( index );
  68.   }

  69.   public List<Route> getRouteList() {
  70.     return this.route;
  71.   }

  72.   public void setRouteList(List<Route> route) {
  73.     this.route=route;
  74.   }

  75.   public int sizeRouteList() {
  76.     return this.route.size();
  77.   }

  78.   public java.lang.String getTipo() {
  79.     return this.tipo;
  80.   }

  81.   public void setTipo(java.lang.String tipo) {
  82.     this.tipo = tipo;
  83.   }

  84.   public java.lang.String getNome() {
  85.     return this.nome;
  86.   }

  87.   public void setNome(java.lang.String nome) {
  88.     this.nome = nome;
  89.   }

  90.   private static final long serialVersionUID = 1L;



  91.   @XmlElement(name="route",required=true,nillable=false)
  92.   private List<Route> route = new ArrayList<>();

  93.   /**
  94.    * Use method getRouteList
  95.    * @return List&lt;Route&gt;
  96.   */
  97.   public List<Route> getRoute() {
  98.     return this.getRouteList();
  99.   }

  100.   /**
  101.    * Use method setRouteList
  102.    * @param route List&lt;Route&gt;
  103.   */
  104.   public void setRoute(List<Route> route) {
  105.     this.setRouteList(route);
  106.   }

  107.   /**
  108.    * Use method sizeRouteList
  109.    * @return lunghezza della lista
  110.   */
  111.   public int sizeRoute() {
  112.     return this.sizeRouteList();
  113.   }

  114.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  115.   @XmlAttribute(name="tipo",required=true)
  116.   protected java.lang.String tipo;

  117.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  118.   @XmlAttribute(name="nome",required=true)
  119.   protected java.lang.String nome;

  120. }