IntegrationConfigurationResourceIdentificationMode.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.ResourceIdentificationType;
  27. import java.io.Serializable;


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

  44. @XmlAccessorType(XmlAccessType.FIELD)
  45. @XmlType(name = "IntegrationConfigurationResourceIdentificationMode")

  46. @XmlRootElement(name = "IntegrationConfigurationResourceIdentificationMode")

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

  51.   public void setNameRawEnumValue(String value) {
  52.     this.name = (ResourceIdentificationType) ResourceIdentificationType.toEnumConstantFromString(value);
  53.   }

  54.   public String getNameRawEnumValue() {
  55.     if(this.name == null){
  56.         return null;
  57.     }else{
  58.         return this.name.toString();
  59.     }
  60.   }

  61.   public org.openspcoop2.protocol.manifest.constants.ResourceIdentificationType getName() {
  62.     return this.name;
  63.   }

  64.   public void setName(org.openspcoop2.protocol.manifest.constants.ResourceIdentificationType name) {
  65.     this.name = name;
  66.   }

  67.   public boolean isOnlyAdvancedMode() {
  68.     return this.onlyAdvancedMode;
  69.   }

  70.   public boolean getOnlyAdvancedMode() {
  71.     return this.onlyAdvancedMode;
  72.   }

  73.   public void setOnlyAdvancedMode(boolean onlyAdvancedMode) {
  74.     this.onlyAdvancedMode = onlyAdvancedMode;
  75.   }

  76.   private static final long serialVersionUID = 1L;



  77.   @javax.xml.bind.annotation.XmlTransient
  78.   protected java.lang.String nameRawEnumValue;

  79.   @XmlAttribute(name="name",required=true)
  80.   protected ResourceIdentificationType name;

  81.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  82.   @XmlAttribute(name="onlyAdvancedMode",required=false)
  83.   protected boolean onlyAdvancedMode = false;

  84. }