
com.rest4j.impl.model.Response Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest4j-core Show documentation
Show all versions of rest4j-core Show documentation
Framework for building RESTful services in Java
The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.10.15 at 09:57:00 AM MSK
//
package com.rest4j.impl.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for Response complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Response">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="code" type="{http://www.w3.org/2001/XMLSchema}int" default="200" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Response")
public class Response {
@XmlAttribute(name = "type")
protected String type;
@XmlAttribute(name = "code")
protected Integer code;
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setType(String value) {
this.type = value;
}
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public int getCode() {
if (code == null) {
return 200;
} else {
return code;
}
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setCode(Integer value) {
this.code = value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy