EmptySubContextMapping.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.FunctionType;
  27. import org.openspcoop2.protocol.manifest.constants.MessageType;
  28. import java.io.Serializable;


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

  45. @XmlAccessorType(XmlAccessType.FIELD)
  46. @XmlType(name = "EmptySubContextMapping")

  47. @XmlRootElement(name = "EmptySubContextMapping")

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

  52.   public void setFunctionRawEnumValue(String value) {
  53.     this.function = (FunctionType) FunctionType.toEnumConstantFromString(value);
  54.   }

  55.   public String getFunctionRawEnumValue() {
  56.     if(this.function == null){
  57.         return null;
  58.     }else{
  59.         return this.function.toString();
  60.     }
  61.   }

  62.   public org.openspcoop2.protocol.manifest.constants.FunctionType getFunction() {
  63.     return this.function;
  64.   }

  65.   public void setFunction(org.openspcoop2.protocol.manifest.constants.FunctionType function) {
  66.     this.function = function;
  67.   }

  68.   public void setMessageTypeRawEnumValue(String value) {
  69.     this.messageType = (MessageType) MessageType.toEnumConstantFromString(value);
  70.   }

  71.   public String getMessageTypeRawEnumValue() {
  72.     if(this.messageType == null){
  73.         return null;
  74.     }else{
  75.         return this.messageType.toString();
  76.     }
  77.   }

  78.   public org.openspcoop2.protocol.manifest.constants.MessageType getMessageType() {
  79.     return this.messageType;
  80.   }

  81.   public void setMessageType(org.openspcoop2.protocol.manifest.constants.MessageType messageType) {
  82.     this.messageType = messageType;
  83.   }

  84.   private static final long serialVersionUID = 1L;



  85.   @javax.xml.bind.annotation.XmlTransient
  86.   protected java.lang.String functionRawEnumValue;

  87.   @XmlAttribute(name="function",required=false)
  88.   protected FunctionType function;

  89.   @javax.xml.bind.annotation.XmlTransient
  90.   protected java.lang.String messageTypeRawEnumValue;

  91.   @XmlAttribute(name="messageType",required=true)
  92.   protected MessageType messageType;

  93. }