MtomProcessorFlow.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 org.openspcoop2.core.config.constants.MTOMProcessorType;
  28. import java.io.Serializable;
  29. import java.util.ArrayList;
  30. import java.util.List;


  31. /** <p>Java class for mtom-processor-flow complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="mtom-processor-flow"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="parameter" type="{http://www.openspcoop2.org/core/config}mtom-processor-flow-parameter" minOccurs="0" maxOccurs="unbounded"/&gt;
  39.  *      &lt;/sequence&gt;
  40.  *      &lt;attribute name="mode" type="{http://www.openspcoop2.org/core/config}MTOMProcessorType" use="optional" default="disable"/&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 = "mtom-processor-flow",
  51.   propOrder = {
  52.     "parameter"
  53.   }
  54. )

  55. @XmlRootElement(name = "mtom-processor-flow")

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

  60.   public void addParameter(MtomProcessorFlowParameter parameter) {
  61.     this.parameter.add(parameter);
  62.   }

  63.   public MtomProcessorFlowParameter getParameter(int index) {
  64.     return this.parameter.get( index );
  65.   }

  66.   public MtomProcessorFlowParameter removeParameter(int index) {
  67.     return this.parameter.remove( index );
  68.   }

  69.   public List<MtomProcessorFlowParameter> getParameterList() {
  70.     return this.parameter;
  71.   }

  72.   public void setParameterList(List<MtomProcessorFlowParameter> parameter) {
  73.     this.parameter=parameter;
  74.   }

  75.   public int sizeParameterList() {
  76.     return this.parameter.size();
  77.   }

  78.   public void setModeRawEnumValue(String value) {
  79.     this.mode = (MTOMProcessorType) MTOMProcessorType.toEnumConstantFromString(value);
  80.   }

  81.   public String getModeRawEnumValue() {
  82.     if(this.mode == null){
  83.         return null;
  84.     }else{
  85.         return this.mode.toString();
  86.     }
  87.   }

  88.   public org.openspcoop2.core.config.constants.MTOMProcessorType getMode() {
  89.     return this.mode;
  90.   }

  91.   public void setMode(org.openspcoop2.core.config.constants.MTOMProcessorType mode) {
  92.     this.mode = mode;
  93.   }

  94.   private static final long serialVersionUID = 1L;



  95.   @XmlElement(name="parameter",required=true,nillable=false)
  96.   private List<MtomProcessorFlowParameter> parameter = new ArrayList<>();

  97.   /**
  98.    * Use method getParameterList
  99.    * @return List&lt;MtomProcessorFlowParameter&gt;
  100.   */
  101.   public List<MtomProcessorFlowParameter> getParameter() {
  102.     return this.getParameterList();
  103.   }

  104.   /**
  105.    * Use method setParameterList
  106.    * @param parameter List&lt;MtomProcessorFlowParameter&gt;
  107.   */
  108.   public void setParameter(List<MtomProcessorFlowParameter> parameter) {
  109.     this.setParameterList(parameter);
  110.   }

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

  118.   @javax.xml.bind.annotation.XmlTransient
  119.   protected java.lang.String modeRawEnumValue;

  120.   @XmlAttribute(name="mode",required=false)
  121.   protected MTOMProcessorType mode = (MTOMProcessorType) MTOMProcessorType.toEnumConstantFromString("disable");

  122. }