Binding.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.ServiceBinding;
  28. import java.io.Serializable;


  29. /** <p>Java class for binding complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="binding"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="soap" type="{http://www.openspcoop2.org/protocol/manifest}SoapConfiguration" minOccurs="0" maxOccurs="1"/&gt;
  37.  *          &lt;element name="rest" type="{http://www.openspcoop2.org/protocol/manifest}RestConfiguration" minOccurs="0" maxOccurs="1"/&gt;
  38.  *      &lt;/sequence&gt;
  39.  *      &lt;attribute name="default" type="{http://www.openspcoop2.org/protocol/manifest}ServiceBinding" use="optional"/&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 = "binding",
  50.   propOrder = {
  51.     "soap",
  52.     "rest"
  53.   }
  54. )

  55. @XmlRootElement(name = "binding")

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

  60.   public SoapConfiguration getSoap() {
  61.     return this.soap;
  62.   }

  63.   public void setSoap(SoapConfiguration soap) {
  64.     this.soap = soap;
  65.   }

  66.   public RestConfiguration getRest() {
  67.     return this.rest;
  68.   }

  69.   public void setRest(RestConfiguration rest) {
  70.     this.rest = rest;
  71.   }

  72.   public void setDefaultRawEnumValue(String value) {
  73.     this._default = (ServiceBinding) ServiceBinding.toEnumConstantFromString(value);
  74.   }

  75.   public String getDefaultRawEnumValue() {
  76.     if(this._default == null){
  77.         return null;
  78.     }else{
  79.         return this._default.toString();
  80.     }
  81.   }

  82.   public org.openspcoop2.protocol.manifest.constants.ServiceBinding getDefault() {
  83.     return this._default;
  84.   }

  85.   public void setDefault(org.openspcoop2.protocol.manifest.constants.ServiceBinding _default) {
  86.     this._default = _default;
  87.   }

  88.   private static final long serialVersionUID = 1L;



  89.   @XmlElement(name="soap",required=false,nillable=false)
  90.   protected SoapConfiguration soap;

  91.   @XmlElement(name="rest",required=false,nillable=false)
  92.   protected RestConfiguration rest;

  93.   @javax.xml.bind.annotation.XmlTransient
  94.   protected java.lang.String _defaultRawEnumValue;

  95.   @XmlAttribute(name="default",required=false)
  96.   protected ServiceBinding _default;

  97. }