Service.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 java.io.Serializable;


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

  51. @XmlAccessorType(XmlAccessType.FIELD)
  52. @XmlType(name = "Service",
  53.   propOrder = {
  54.     "types"
  55.   }
  56. )

  57. @XmlRootElement(name = "Service")

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

  62.   public ServiceTypes getTypes() {
  63.     return this.types;
  64.   }

  65.   public void setTypes(ServiceTypes types) {
  66.     this.types = types;
  67.   }

  68.   public boolean isApiReferent() {
  69.     return this.apiReferent;
  70.   }

  71.   public boolean getApiReferent() {
  72.     return this.apiReferent;
  73.   }

  74.   public void setApiReferent(boolean apiReferent) {
  75.     this.apiReferent = apiReferent;
  76.   }

  77.   public boolean isVersion() {
  78.     return this.version;
  79.   }

  80.   public boolean getVersion() {
  81.     return this.version;
  82.   }

  83.   public void setVersion(boolean version) {
  84.     this.version = version;
  85.   }

  86.   public boolean isProtocolEnvelopeManagement() {
  87.     return this.protocolEnvelopeManagement;
  88.   }

  89.   public boolean getProtocolEnvelopeManagement() {
  90.     return this.protocolEnvelopeManagement;
  91.   }

  92.   public void setProtocolEnvelopeManagement(boolean protocolEnvelopeManagement) {
  93.     this.protocolEnvelopeManagement = protocolEnvelopeManagement;
  94.   }

  95.   public boolean isFaultChoice() {
  96.     return this.faultChoice;
  97.   }

  98.   public boolean getFaultChoice() {
  99.     return this.faultChoice;
  100.   }

  101.   public void setFaultChoice(boolean faultChoice) {
  102.     this.faultChoice = faultChoice;
  103.   }

  104.   public boolean isCorrelationReuseProtocolId() {
  105.     return this.correlationReuseProtocolId;
  106.   }

  107.   public boolean getCorrelationReuseProtocolId() {
  108.     return this.correlationReuseProtocolId;
  109.   }

  110.   public void setCorrelationReuseProtocolId(boolean correlationReuseProtocolId) {
  111.     this.correlationReuseProtocolId = correlationReuseProtocolId;
  112.   }

  113.   public boolean isTrace() {
  114.     return this.trace;
  115.   }

  116.   public boolean getTrace() {
  117.     return this.trace;
  118.   }

  119.   public void setTrace(boolean trace) {
  120.     this.trace = trace;
  121.   }

  122.   private static final long serialVersionUID = 1L;



  123.   @XmlElement(name="types",required=true,nillable=false)
  124.   protected ServiceTypes types;

  125.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  126.   @XmlAttribute(name="apiReferent",required=false)
  127.   protected boolean apiReferent = false;

  128.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  129.   @XmlAttribute(name="version",required=false)
  130.   protected boolean version = true;

  131.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  132.   @XmlAttribute(name="protocolEnvelopeManagement",required=false)
  133.   protected boolean protocolEnvelopeManagement = false;

  134.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  135.   @XmlAttribute(name="faultChoice",required=false)
  136.   protected boolean faultChoice = false;

  137.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  138.   @XmlAttribute(name="correlationReuseProtocolId",required=false)
  139.   protected boolean correlationReuseProtocolId = false;

  140.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  141.   @XmlAttribute(name="trace",required=false)
  142.   protected boolean trace = true;

  143. }