UrlMapping.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 org.openspcoop2.protocol.manifest.constants.UrlMappingSourceType;
  28. import java.io.Serializable;


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

  47. @XmlAccessorType(XmlAccessType.FIELD)
  48. @XmlType(name = "urlMapping",
  49.   propOrder = {
  50.     "file"
  51.   }
  52. )

  53. @XmlRootElement(name = "urlMapping")

  54. public class UrlMapping extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  55.   public UrlMapping() {
  56.     super();
  57.   }

  58.   public java.lang.String getFile() {
  59.     return this.file;
  60.   }

  61.   public void setFile(java.lang.String file) {
  62.     this.file = file;
  63.   }

  64.   public void setTypeRawEnumValue(String value) {
  65.     this.type = (UrlMappingSourceType) UrlMappingSourceType.toEnumConstantFromString(value);
  66.   }

  67.   public String getTypeRawEnumValue() {
  68.     if(this.type == null){
  69.         return null;
  70.     }else{
  71.         return this.type.toString();
  72.     }
  73.   }

  74.   public org.openspcoop2.protocol.manifest.constants.UrlMappingSourceType getType() {
  75.     return this.type;
  76.   }

  77.   public void setType(org.openspcoop2.protocol.manifest.constants.UrlMappingSourceType type) {
  78.     this.type = type;
  79.   }

  80.   private static final long serialVersionUID = 1L;



  81.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  82.   @XmlElement(name="file",required=true,nillable=false)
  83.   protected java.lang.String file;

  84.   @javax.xml.bind.annotation.XmlTransient
  85.   protected java.lang.String typeRawEnumValue;

  86.   @XmlAttribute(name="type",required=true)
  87.   protected UrlMappingSourceType type;

  88. }