Message.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 it.gov.spcoop.sica.wsbl;

  21. import it.gov.spcoop.sica.wsbl.constants.MessageOrientationType;
  22. import javax.xml.bind.annotation.XmlAccessType;
  23. import javax.xml.bind.annotation.XmlAccessorType;
  24. import javax.xml.bind.annotation.XmlAttribute;
  25. import javax.xml.bind.annotation.XmlRootElement;
  26. import javax.xml.bind.annotation.XmlType;
  27. import java.io.Serializable;


  28. /** <p>Java class for message complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="message"&gt;
  34.  *      &lt;attribute name="name" type="{http://spcoop.gov.it/sica/wsbl}string" use="required"/&gt;
  35.  *      &lt;attribute name="type" type="{http://spcoop.gov.it/sica/wsbl}messageOrientationType" use="required"/&gt;
  36.  *      &lt;attribute name="source" type="{http://spcoop.gov.it/sica/wsbl}string" use="required"/&gt;
  37.  *      &lt;attribute name="target" type="{http://spcoop.gov.it/sica/wsbl}string" use="required"/&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 = "message")

  48. @XmlRootElement(name = "message")

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

  53.   public java.lang.String getName() {
  54.     return this.name;
  55.   }

  56.   public void setName(java.lang.String name) {
  57.     this.name = name;
  58.   }

  59.   public void setTypeRawEnumValue(String value) {
  60.     this.type = (MessageOrientationType) MessageOrientationType.toEnumConstantFromString(value);
  61.   }

  62.   public String getTypeRawEnumValue() {
  63.     if(this.type == null){
  64.         return null;
  65.     }else{
  66.         return this.type.toString();
  67.     }
  68.   }

  69.   public it.gov.spcoop.sica.wsbl.constants.MessageOrientationType getType() {
  70.     return this.type;
  71.   }

  72.   public void setType(it.gov.spcoop.sica.wsbl.constants.MessageOrientationType type) {
  73.     this.type = type;
  74.   }

  75.   public java.lang.String getSource() {
  76.     return this.source;
  77.   }

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

  81.   public java.lang.String getTarget() {
  82.     return this.target;
  83.   }

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

  87.   private static final long serialVersionUID = 1L;



  88.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  89.   @XmlAttribute(name="name",required=true)
  90.   protected java.lang.String name;

  91.   @javax.xml.bind.annotation.XmlTransient
  92.   protected java.lang.String typeRawEnumValue;

  93.   @XmlAttribute(name="type",required=true)
  94.   protected MessageOrientationType type;

  95.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  96.   @XmlAttribute(name="source",required=true)
  97.   protected java.lang.String source;

  98.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  99.   @XmlAttribute(name="target",required=true)
  100.   protected java.lang.String target;

  101. }