InterfaceConfiguration.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.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import org.openspcoop2.protocol.manifest.constants.InterfaceType;
  27. import java.io.Serializable;


  28. /** <p>Java class for InterfaceConfiguration complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="InterfaceConfiguration"&gt;
  34.  *      &lt;attribute name="type" type="{http://www.openspcoop2.org/protocol/manifest}InterfaceType" use="required"/&gt;
  35.  *      &lt;attribute name="schema" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  36.  *      &lt;attribute name="conversations" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  37.  *      &lt;attribute name="implementation" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  38.  * &lt;/complexType&gt;
  39.  * </pre>
  40.  *
  41.  * @version $Rev$, $Date$
  42.  *
  43.  * @author Poli Andrea (poli@link.it)
  44.  * @author $Author$
  45.  * */

  46. @XmlAccessorType(XmlAccessType.FIELD)
  47. @XmlType(name = "InterfaceConfiguration")

  48. @XmlRootElement(name = "InterfaceConfiguration")

  49. public class InterfaceConfiguration extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  50.   public InterfaceConfiguration() {
  51.     super();
  52.   }

  53.   public void setTypeRawEnumValue(String value) {
  54.     this.type = (InterfaceType) InterfaceType.toEnumConstantFromString(value);
  55.   }

  56.   public String getTypeRawEnumValue() {
  57.     if(this.type == null){
  58.         return null;
  59.     }else{
  60.         return this.type.toString();
  61.     }
  62.   }

  63.   public org.openspcoop2.protocol.manifest.constants.InterfaceType getType() {
  64.     return this.type;
  65.   }

  66.   public void setType(org.openspcoop2.protocol.manifest.constants.InterfaceType type) {
  67.     this.type = type;
  68.   }

  69.   public boolean isSchema() {
  70.     return this.schema;
  71.   }

  72.   public boolean getSchema() {
  73.     return this.schema;
  74.   }

  75.   public void setSchema(boolean schema) {
  76.     this.schema = schema;
  77.   }

  78.   public boolean isConversations() {
  79.     return this.conversations;
  80.   }

  81.   public boolean getConversations() {
  82.     return this.conversations;
  83.   }

  84.   public void setConversations(boolean conversations) {
  85.     this.conversations = conversations;
  86.   }

  87.   public boolean isImplementation() {
  88.     return this.implementation;
  89.   }

  90.   public boolean getImplementation() {
  91.     return this.implementation;
  92.   }

  93.   public void setImplementation(boolean implementation) {
  94.     this.implementation = implementation;
  95.   }

  96.   private static final long serialVersionUID = 1L;



  97.   @javax.xml.bind.annotation.XmlTransient
  98.   protected java.lang.String typeRawEnumValue;

  99.   @XmlAttribute(name="type",required=true)
  100.   protected InterfaceType type;

  101.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  102.   @XmlAttribute(name="schema",required=false)
  103.   protected boolean schema = false;

  104.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  105.   @XmlAttribute(name="conversations",required=false)
  106.   protected boolean conversations = false;

  107.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  108.   @XmlAttribute(name="implementation",required=false)
  109.   protected boolean implementation = false;

  110. }