AccordoServizioParteComune.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.commons.search;

  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 accordo-servizio-parte-comune complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="accordo-servizio-parte-comune"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="nome" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="versione" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="id-referente" type="{http://www.openspcoop2.org/core/commons/search}id-soggetto" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="service-binding" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  40.  *          &lt;element name="canale" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  41.  *          &lt;element name="accordo-servizio-parte-comune-azione" type="{http://www.openspcoop2.org/core/commons/search}accordo-servizio-parte-comune-azione" minOccurs="0" maxOccurs="unbounded"/&gt;
  42.  *          &lt;element name="port-type" type="{http://www.openspcoop2.org/core/commons/search}port-type" minOccurs="0" maxOccurs="unbounded"/&gt;
  43.  *          &lt;element name="resource" type="{http://www.openspcoop2.org/core/commons/search}resource" minOccurs="0" maxOccurs="unbounded"/&gt;
  44.  *          &lt;element name="accordo-servizio-parte-comune-gruppo" type="{http://www.openspcoop2.org/core/commons/search}accordo-servizio-parte-comune-gruppo" minOccurs="0" maxOccurs="unbounded"/&gt;
  45.  *      &lt;/sequence&gt;
  46.  * &lt;/complexType&gt;
  47.  * </pre>
  48.  *
  49.  * @version $Rev$, $Date$
  50.  *
  51.  * @author Poli Andrea (poli@link.it)
  52.  * @author $Author$
  53.  * */

  54. @XmlAccessorType(XmlAccessType.FIELD)
  55. @XmlType(name = "accordo-servizio-parte-comune",
  56.   propOrder = {
  57.     "nome",
  58.     "versione",
  59.     "idReferente",
  60.     "serviceBinding",
  61.     "canale",
  62.     "accordoServizioParteComuneAzione",
  63.     "portType",
  64.     "resource",
  65.     "accordoServizioParteComuneGruppo"
  66.   }
  67. )

  68. @XmlRootElement(name = "accordo-servizio-parte-comune")

  69. public class AccordoServizioParteComune extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  70.   public AccordoServizioParteComune() {
  71.     super();
  72.   }

  73.   public java.lang.String getNome() {
  74.     return this.nome;
  75.   }

  76.   public void setNome(java.lang.String nome) {
  77.     this.nome = nome;
  78.   }

  79.   public java.lang.Integer getVersione() {
  80.     return this.versione;
  81.   }

  82.   public void setVersione(java.lang.Integer versione) {
  83.     this.versione = versione;
  84.   }

  85.   public IdSoggetto getIdReferente() {
  86.     return this.idReferente;
  87.   }

  88.   public void setIdReferente(IdSoggetto idReferente) {
  89.     this.idReferente = idReferente;
  90.   }

  91.   public java.lang.String getServiceBinding() {
  92.     return this.serviceBinding;
  93.   }

  94.   public void setServiceBinding(java.lang.String serviceBinding) {
  95.     this.serviceBinding = serviceBinding;
  96.   }

  97.   public java.lang.String getCanale() {
  98.     return this.canale;
  99.   }

  100.   public void setCanale(java.lang.String canale) {
  101.     this.canale = canale;
  102.   }

  103.   public void addAccordoServizioParteComuneAzione(AccordoServizioParteComuneAzione accordoServizioParteComuneAzione) {
  104.     this.accordoServizioParteComuneAzione.add(accordoServizioParteComuneAzione);
  105.   }

  106.   public AccordoServizioParteComuneAzione getAccordoServizioParteComuneAzione(int index) {
  107.     return this.accordoServizioParteComuneAzione.get( index );
  108.   }

  109.   public AccordoServizioParteComuneAzione removeAccordoServizioParteComuneAzione(int index) {
  110.     return this.accordoServizioParteComuneAzione.remove( index );
  111.   }

  112.   public List<AccordoServizioParteComuneAzione> getAccordoServizioParteComuneAzioneList() {
  113.     return this.accordoServizioParteComuneAzione;
  114.   }

  115.   public void setAccordoServizioParteComuneAzioneList(List<AccordoServizioParteComuneAzione> accordoServizioParteComuneAzione) {
  116.     this.accordoServizioParteComuneAzione=accordoServizioParteComuneAzione;
  117.   }

  118.   public int sizeAccordoServizioParteComuneAzioneList() {
  119.     return this.accordoServizioParteComuneAzione.size();
  120.   }

  121.   public void addPortType(PortType portType) {
  122.     this.portType.add(portType);
  123.   }

  124.   public PortType getPortType(int index) {
  125.     return this.portType.get( index );
  126.   }

  127.   public PortType removePortType(int index) {
  128.     return this.portType.remove( index );
  129.   }

  130.   public List<PortType> getPortTypeList() {
  131.     return this.portType;
  132.   }

  133.   public void setPortTypeList(List<PortType> portType) {
  134.     this.portType=portType;
  135.   }

  136.   public int sizePortTypeList() {
  137.     return this.portType.size();
  138.   }

  139.   public void addResource(Resource resource) {
  140.     this.resource.add(resource);
  141.   }

  142.   public Resource getResource(int index) {
  143.     return this.resource.get( index );
  144.   }

  145.   public Resource removeResource(int index) {
  146.     return this.resource.remove( index );
  147.   }

  148.   public List<Resource> getResourceList() {
  149.     return this.resource;
  150.   }

  151.   public void setResourceList(List<Resource> resource) {
  152.     this.resource=resource;
  153.   }

  154.   public int sizeResourceList() {
  155.     return this.resource.size();
  156.   }

  157.   public void addAccordoServizioParteComuneGruppo(AccordoServizioParteComuneGruppo accordoServizioParteComuneGruppo) {
  158.     this.accordoServizioParteComuneGruppo.add(accordoServizioParteComuneGruppo);
  159.   }

  160.   public AccordoServizioParteComuneGruppo getAccordoServizioParteComuneGruppo(int index) {
  161.     return this.accordoServizioParteComuneGruppo.get( index );
  162.   }

  163.   public AccordoServizioParteComuneGruppo removeAccordoServizioParteComuneGruppo(int index) {
  164.     return this.accordoServizioParteComuneGruppo.remove( index );
  165.   }

  166.   public List<AccordoServizioParteComuneGruppo> getAccordoServizioParteComuneGruppoList() {
  167.     return this.accordoServizioParteComuneGruppo;
  168.   }

  169.   public void setAccordoServizioParteComuneGruppoList(List<AccordoServizioParteComuneGruppo> accordoServizioParteComuneGruppo) {
  170.     this.accordoServizioParteComuneGruppo=accordoServizioParteComuneGruppo;
  171.   }

  172.   public int sizeAccordoServizioParteComuneGruppoList() {
  173.     return this.accordoServizioParteComuneGruppo.size();
  174.   }

  175.   private static final long serialVersionUID = 1L;

  176.   private static org.openspcoop2.core.commons.search.model.AccordoServizioParteComuneModel modelStaticInstance = null;
  177.   private static synchronized void initModelStaticInstance(){
  178.       if(org.openspcoop2.core.commons.search.AccordoServizioParteComune.modelStaticInstance==null){
  179.             org.openspcoop2.core.commons.search.AccordoServizioParteComune.modelStaticInstance = new org.openspcoop2.core.commons.search.model.AccordoServizioParteComuneModel();
  180.       }
  181.   }
  182.   public static org.openspcoop2.core.commons.search.model.AccordoServizioParteComuneModel model(){
  183.       if(org.openspcoop2.core.commons.search.AccordoServizioParteComune.modelStaticInstance==null){
  184.             initModelStaticInstance();
  185.       }
  186.       return org.openspcoop2.core.commons.search.AccordoServizioParteComune.modelStaticInstance;
  187.   }


  188.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  189.   @XmlElement(name="nome",required=true,nillable=false)
  190.   protected java.lang.String nome;

  191.   @javax.xml.bind.annotation.XmlSchemaType(name="integer")
  192.   @XmlElement(name="versione",required=true,nillable=false)
  193.   protected java.lang.Integer versione;

  194.   @XmlElement(name="id-referente",required=true,nillable=false)
  195.   protected IdSoggetto idReferente;

  196.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  197.   @XmlElement(name="service-binding",required=true,nillable=false)
  198.   protected java.lang.String serviceBinding;

  199.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  200.   @XmlElement(name="canale",required=true,nillable=false)
  201.   protected java.lang.String canale;

  202.   @XmlElement(name="accordo-servizio-parte-comune-azione",required=true,nillable=false)
  203.   private List<AccordoServizioParteComuneAzione> accordoServizioParteComuneAzione = new ArrayList<>();

  204.   /**
  205.    * Use method getAccordoServizioParteComuneAzioneList
  206.    * @return List&lt;AccordoServizioParteComuneAzione&gt;
  207.   */
  208.   public List<AccordoServizioParteComuneAzione> getAccordoServizioParteComuneAzione() {
  209.     return this.getAccordoServizioParteComuneAzioneList();
  210.   }

  211.   /**
  212.    * Use method setAccordoServizioParteComuneAzioneList
  213.    * @param accordoServizioParteComuneAzione List&lt;AccordoServizioParteComuneAzione&gt;
  214.   */
  215.   public void setAccordoServizioParteComuneAzione(List<AccordoServizioParteComuneAzione> accordoServizioParteComuneAzione) {
  216.     this.setAccordoServizioParteComuneAzioneList(accordoServizioParteComuneAzione);
  217.   }

  218.   /**
  219.    * Use method sizeAccordoServizioParteComuneAzioneList
  220.    * @return lunghezza della lista
  221.   */
  222.   public int sizeAccordoServizioParteComuneAzione() {
  223.     return this.sizeAccordoServizioParteComuneAzioneList();
  224.   }

  225.   @XmlElement(name="port-type",required=true,nillable=false)
  226.   private List<PortType> portType = new ArrayList<>();

  227.   /**
  228.    * Use method getPortTypeList
  229.    * @return List&lt;PortType&gt;
  230.   */
  231.   public List<PortType> getPortType() {
  232.     return this.getPortTypeList();
  233.   }

  234.   /**
  235.    * Use method setPortTypeList
  236.    * @param portType List&lt;PortType&gt;
  237.   */
  238.   public void setPortType(List<PortType> portType) {
  239.     this.setPortTypeList(portType);
  240.   }

  241.   /**
  242.    * Use method sizePortTypeList
  243.    * @return lunghezza della lista
  244.   */
  245.   public int sizePortType() {
  246.     return this.sizePortTypeList();
  247.   }

  248.   @XmlElement(name="resource",required=true,nillable=false)
  249.   private List<Resource> resource = new ArrayList<>();

  250.   /**
  251.    * Use method getResourceList
  252.    * @return List&lt;Resource&gt;
  253.   */
  254.   public List<Resource> getResource() {
  255.     return this.getResourceList();
  256.   }

  257.   /**
  258.    * Use method setResourceList
  259.    * @param resource List&lt;Resource&gt;
  260.   */
  261.   public void setResource(List<Resource> resource) {
  262.     this.setResourceList(resource);
  263.   }

  264.   /**
  265.    * Use method sizeResourceList
  266.    * @return lunghezza della lista
  267.   */
  268.   public int sizeResource() {
  269.     return this.sizeResourceList();
  270.   }

  271.   @XmlElement(name="accordo-servizio-parte-comune-gruppo",required=true,nillable=false)
  272.   private List<AccordoServizioParteComuneGruppo> accordoServizioParteComuneGruppo = new ArrayList<>();

  273.   /**
  274.    * Use method getAccordoServizioParteComuneGruppoList
  275.    * @return List&lt;AccordoServizioParteComuneGruppo&gt;
  276.   */
  277.   public List<AccordoServizioParteComuneGruppo> getAccordoServizioParteComuneGruppo() {
  278.     return this.getAccordoServizioParteComuneGruppoList();
  279.   }

  280.   /**
  281.    * Use method setAccordoServizioParteComuneGruppoList
  282.    * @param accordoServizioParteComuneGruppo List&lt;AccordoServizioParteComuneGruppo&gt;
  283.   */
  284.   public void setAccordoServizioParteComuneGruppo(List<AccordoServizioParteComuneGruppo> accordoServizioParteComuneGruppo) {
  285.     this.setAccordoServizioParteComuneGruppoList(accordoServizioParteComuneGruppo);
  286.   }

  287.   /**
  288.    * Use method sizeAccordoServizioParteComuneGruppoList
  289.    * @return lunghezza della lista
  290.   */
  291.   public int sizeAccordoServizioParteComuneGruppo() {
  292.     return this.sizeAccordoServizioParteComuneGruppoList();
  293.   }

  294. }