RestMediaTypeUndefinedMapping.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.RestMessageType;
  27. import java.io.Serializable;


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

  43. @XmlAccessorType(XmlAccessType.FIELD)
  44. @XmlType(name = "RestMediaTypeUndefinedMapping")

  45. @XmlRootElement(name = "RestMediaTypeUndefinedMapping")

  46. public class RestMediaTypeUndefinedMapping extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  47.   public RestMediaTypeUndefinedMapping() {
  48.     super();
  49.   }

  50.   public void setMessageTypeRawEnumValue(String value) {
  51.     this.messageType = (RestMessageType) RestMessageType.toEnumConstantFromString(value);
  52.   }

  53.   public String getMessageTypeRawEnumValue() {
  54.     if(this.messageType == null){
  55.         return null;
  56.     }else{
  57.         return this.messageType.toString();
  58.     }
  59.   }

  60.   public org.openspcoop2.protocol.manifest.constants.RestMessageType getMessageType() {
  61.     return this.messageType;
  62.   }

  63.   public void setMessageType(org.openspcoop2.protocol.manifest.constants.RestMessageType messageType) {
  64.     this.messageType = messageType;
  65.   }

  66.   private static final long serialVersionUID = 1L;



  67.   @javax.xml.bind.annotation.XmlTransient
  68.   protected java.lang.String messageTypeRawEnumValue;

  69.   @XmlAttribute(name="messageType",required=true)
  70.   protected RestMessageType messageType;

  71. }