ResourceRepresentationXml.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.core.registry;

  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.core.registry.constants.RepresentationXmlType;
  27. import java.io.Serializable;


  28. /** <p>Java class for resource-representation-xml complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="resource-representation-xml"&gt;
  34.  *      &lt;attribute name="xml-type" type="{http://www.openspcoop2.org/core/registry}RepresentationXmlType" use="required"/&gt;
  35.  *      &lt;attribute name="nome" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  36.  *      &lt;attribute name="namespace" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&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 = "resource-representation-xml")

  47. @XmlRootElement(name = "resource-representation-xml")

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

  52.   public void setXmlTypeRawEnumValue(String value) {
  53.     this.xmlType = (RepresentationXmlType) RepresentationXmlType.toEnumConstantFromString(value);
  54.   }

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

  62.   public org.openspcoop2.core.registry.constants.RepresentationXmlType getXmlType() {
  63.     return this.xmlType;
  64.   }

  65.   public void setXmlType(org.openspcoop2.core.registry.constants.RepresentationXmlType xmlType) {
  66.     this.xmlType = xmlType;
  67.   }

  68.   public java.lang.String getNome() {
  69.     return this.nome;
  70.   }

  71.   public void setNome(java.lang.String nome) {
  72.     this.nome = nome;
  73.   }

  74.   public java.lang.String getNamespace() {
  75.     return this.namespace;
  76.   }

  77.   public void setNamespace(java.lang.String namespace) {
  78.     this.namespace = namespace;
  79.   }

  80.   private static final long serialVersionUID = 1L;



  81.   @javax.xml.bind.annotation.XmlTransient
  82.   protected java.lang.String xmlTypeRawEnumValue;

  83.   @XmlAttribute(name="xml-type",required=true)
  84.   protected RepresentationXmlType xmlType;

  85.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  86.   @XmlAttribute(name="nome",required=true)
  87.   protected java.lang.String nome;

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

  91. }