SoapMediaTypeCollection.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.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 SoapMediaTypeCollection complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="SoapMediaTypeCollection"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="mediaType" type="{http://www.openspcoop2.org/protocol/manifest}SoapMediaTypeMapping" minOccurs="0" maxOccurs="unbounded"/&gt;
  37.  *          &lt;element name="default" type="{http://www.openspcoop2.org/protocol/manifest}SoapMediaTypeDefaultMapping" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="undefined" type="{http://www.openspcoop2.org/protocol/manifest}SoapMediaTypeUndefinedMapping" minOccurs="0" maxOccurs="1"/&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 = "SoapMediaTypeCollection",
  50.   propOrder = {
  51.     "mediaType",
  52.     "_default",
  53.     "undefined"
  54.   }
  55. )

  56. @XmlRootElement(name = "SoapMediaTypeCollection")

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

  61.   public void addMediaType(SoapMediaTypeMapping mediaType) {
  62.     this.mediaType.add(mediaType);
  63.   }

  64.   public SoapMediaTypeMapping getMediaType(int index) {
  65.     return this.mediaType.get( index );
  66.   }

  67.   public SoapMediaTypeMapping removeMediaType(int index) {
  68.     return this.mediaType.remove( index );
  69.   }

  70.   public List<SoapMediaTypeMapping> getMediaTypeList() {
  71.     return this.mediaType;
  72.   }

  73.   public void setMediaTypeList(List<SoapMediaTypeMapping> mediaType) {
  74.     this.mediaType=mediaType;
  75.   }

  76.   public int sizeMediaTypeList() {
  77.     return this.mediaType.size();
  78.   }

  79.   public SoapMediaTypeDefaultMapping getDefault() {
  80.     return this._default;
  81.   }

  82.   public void setDefault(SoapMediaTypeDefaultMapping _default) {
  83.     this._default = _default;
  84.   }

  85.   public SoapMediaTypeUndefinedMapping getUndefined() {
  86.     return this.undefined;
  87.   }

  88.   public void setUndefined(SoapMediaTypeUndefinedMapping undefined) {
  89.     this.undefined = undefined;
  90.   }

  91.   private static final long serialVersionUID = 1L;



  92.   @XmlElement(name="mediaType",required=true,nillable=false)
  93.   private List<SoapMediaTypeMapping> mediaType = new ArrayList<>();

  94.   /**
  95.    * Use method getMediaTypeList
  96.    * @return List&lt;SoapMediaTypeMapping&gt;
  97.   */
  98.   public List<SoapMediaTypeMapping> getMediaType() {
  99.     return this.getMediaTypeList();
  100.   }

  101.   /**
  102.    * Use method setMediaTypeList
  103.    * @param mediaType List&lt;SoapMediaTypeMapping&gt;
  104.   */
  105.   public void setMediaType(List<SoapMediaTypeMapping> mediaType) {
  106.     this.setMediaTypeList(mediaType);
  107.   }

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

  115.   @XmlElement(name="default",required=false,nillable=false)
  116.   protected SoapMediaTypeDefaultMapping _default;

  117.   @XmlElement(name="undefined",required=false,nillable=false)
  118.   protected SoapMediaTypeUndefinedMapping undefined;

  119. }