Protocol.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 protocol complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="protocol"&gt;
  34.  *      &lt;sequence&gt;
  35.  *          &lt;element name="factory" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="transaction" type="{http://www.openspcoop2.org/protocol/manifest}transaction" minOccurs="0" maxOccurs="1"/&gt;
  37.  *      &lt;/sequence&gt;
  38.  *      &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  39.  *      &lt;attribute name="label" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  40.  *      &lt;attribute name="descrizione" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  41.  *      &lt;attribute name="webSite" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  42.  *      &lt;attribute name="logger" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&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 = "protocol",
  53.   propOrder = {
  54.     "factory",
  55.     "transaction"
  56.   }
  57. )

  58. @XmlRootElement(name = "protocol")

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

  63.   public java.lang.String getFactory() {
  64.     return this.factory;
  65.   }

  66.   public void setFactory(java.lang.String factory) {
  67.     this.factory = factory;
  68.   }

  69.   public Transaction getTransaction() {
  70.     return this.transaction;
  71.   }

  72.   public void setTransaction(Transaction transaction) {
  73.     this.transaction = transaction;
  74.   }

  75.   public java.lang.String getName() {
  76.     return this.name;
  77.   }

  78.   public void setName(java.lang.String name) {
  79.     this.name = name;
  80.   }

  81.   public java.lang.String getLabel() {
  82.     return this.label;
  83.   }

  84.   public void setLabel(java.lang.String label) {
  85.     this.label = label;
  86.   }

  87.   public java.lang.String getDescrizione() {
  88.     return this.descrizione;
  89.   }

  90.   public void setDescrizione(java.lang.String descrizione) {
  91.     this.descrizione = descrizione;
  92.   }

  93.   public java.lang.String getWebSite() {
  94.     return this.webSite;
  95.   }

  96.   public void setWebSite(java.lang.String webSite) {
  97.     this.webSite = webSite;
  98.   }

  99.   public boolean isLogger() {
  100.     return this.logger;
  101.   }

  102.   public boolean getLogger() {
  103.     return this.logger;
  104.   }

  105.   public void setLogger(boolean logger) {
  106.     this.logger = logger;
  107.   }

  108.   private static final long serialVersionUID = 1L;



  109.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  110.   @XmlElement(name="factory",required=true,nillable=false)
  111.   protected java.lang.String factory;

  112.   @XmlElement(name="transaction",required=false,nillable=false)
  113.   protected Transaction transaction;

  114.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  115.   @XmlAttribute(name="name",required=true)
  116.   protected java.lang.String name;

  117.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  118.   @XmlAttribute(name="label",required=true)
  119.   protected java.lang.String label;

  120.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  121.   @XmlAttribute(name="descrizione",required=false)
  122.   protected java.lang.String descrizione;

  123.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  124.   @XmlAttribute(name="webSite",required=false)
  125.   protected java.lang.String webSite;

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

  129. }