IntegrationConfigurationResourceIdentificationModes.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.protocol.manifest;

  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 org.openspcoop2.protocol.manifest.constants.ResourceIdentificationType;
  28. import java.io.Serializable;
  29. import java.util.ArrayList;
  30. import java.util.List;


  31. /** <p>Java class for IntegrationConfigurationResourceIdentificationModes complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="IntegrationConfigurationResourceIdentificationModes"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="mode" type="{http://www.openspcoop2.org/protocol/manifest}IntegrationConfigurationResourceIdentificationMode" minOccurs="1" maxOccurs="unbounded"/&gt;
  39.  *      &lt;/sequence&gt;
  40.  *      &lt;attribute name="default" type="{http://www.openspcoop2.org/protocol/manifest}ResourceIdentificationType" use="optional"/&gt;
  41.  *      &lt;attribute name="forceInterfaceMode" type="{http://www.w3.org/2001/XMLSchema}boolean" use="required"/&gt;
  42.  * &lt;/complexType&gt;
  43.  * </pre>
  44.  *
  45.  * @version $Rev$, $Date$
  46.  *
  47.  * @author Poli Andrea (poli@link.it)
  48.  * @author $Author$
  49.  * */

  50. @XmlAccessorType(XmlAccessType.FIELD)
  51. @XmlType(name = "IntegrationConfigurationResourceIdentificationModes",
  52.   propOrder = {
  53.     "mode"
  54.   }
  55. )

  56. @XmlRootElement(name = "IntegrationConfigurationResourceIdentificationModes")

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

  61.   public void addMode(IntegrationConfigurationResourceIdentificationMode mode) {
  62.     this.mode.add(mode);
  63.   }

  64.   public IntegrationConfigurationResourceIdentificationMode getMode(int index) {
  65.     return this.mode.get( index );
  66.   }

  67.   public IntegrationConfigurationResourceIdentificationMode removeMode(int index) {
  68.     return this.mode.remove( index );
  69.   }

  70.   public List<IntegrationConfigurationResourceIdentificationMode> getModeList() {
  71.     return this.mode;
  72.   }

  73.   public void setModeList(List<IntegrationConfigurationResourceIdentificationMode> mode) {
  74.     this.mode=mode;
  75.   }

  76.   public int sizeModeList() {
  77.     return this.mode.size();
  78.   }

  79.   public void setDefaultRawEnumValue(String value) {
  80.     this._default = (ResourceIdentificationType) ResourceIdentificationType.toEnumConstantFromString(value);
  81.   }

  82.   public String getDefaultRawEnumValue() {
  83.     if(this._default == null){
  84.         return null;
  85.     }else{
  86.         return this._default.toString();
  87.     }
  88.   }

  89.   public org.openspcoop2.protocol.manifest.constants.ResourceIdentificationType getDefault() {
  90.     return this._default;
  91.   }

  92.   public void setDefault(org.openspcoop2.protocol.manifest.constants.ResourceIdentificationType _default) {
  93.     this._default = _default;
  94.   }

  95.   public boolean isForceInterfaceMode() {
  96.     return this.forceInterfaceMode;
  97.   }

  98.   public boolean getForceInterfaceMode() {
  99.     return this.forceInterfaceMode;
  100.   }

  101.   public void setForceInterfaceMode(boolean forceInterfaceMode) {
  102.     this.forceInterfaceMode = forceInterfaceMode;
  103.   }

  104.   private static final long serialVersionUID = 1L;



  105.   @XmlElement(name="mode",required=true,nillable=false)
  106.   private List<IntegrationConfigurationResourceIdentificationMode> mode = new ArrayList<>();

  107.   /**
  108.    * Use method getModeList
  109.    * @return List&lt;IntegrationConfigurationResourceIdentificationMode&gt;
  110.   */
  111.   public List<IntegrationConfigurationResourceIdentificationMode> getMode() {
  112.     return this.getModeList();
  113.   }

  114.   /**
  115.    * Use method setModeList
  116.    * @param mode List&lt;IntegrationConfigurationResourceIdentificationMode&gt;
  117.   */
  118.   public void setMode(List<IntegrationConfigurationResourceIdentificationMode> mode) {
  119.     this.setModeList(mode);
  120.   }

  121.   /**
  122.    * Use method sizeModeList
  123.    * @return lunghezza della lista
  124.   */
  125.   public int sizeMode() {
  126.     return this.sizeModeList();
  127.   }

  128.   @javax.xml.bind.annotation.XmlTransient
  129.   protected java.lang.String _defaultRawEnumValue;

  130.   @XmlAttribute(name="default",required=false)
  131.   protected ResourceIdentificationType _default;

  132.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  133.   @XmlAttribute(name="forceInterfaceMode",required=true)
  134.   protected boolean forceInterfaceMode;

  135. }