com.elluminate.sas.BlackboardErrorResponse Maven / Gradle / Ivy
package com.elluminate.sas;
import java.io.Serializable;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Java class for ErrorResponse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="ErrorResponse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="command" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="success" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ErrorResponse", propOrder = {
"command",
"message",
"success"
})
@XmlRootElement(name = "ErrorResponse")
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public class BlackboardErrorResponse
implements Serializable, Equals, HashCode, ToString
{
@XmlElement(required = true)
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
protected String command;
@XmlElement(required = true)
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
protected String message;
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
protected boolean success;
/**
* Gets the value of the command property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public String getCommand() {
return command;
}
/**
* Sets the value of the command property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public void setCommand(String value) {
this.command = value;
}
/**
* Gets the value of the message property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public String getMessage() {
return message;
}
/**
* Sets the value of the message property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public void setMessage(String value) {
this.message = value;
}
/**
* Gets the value of the success property.
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public boolean isSuccess() {
return success;
}
/**
* Sets the value of the success property.
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public void setSuccess(boolean value) {
this.success = value;
}
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
String theCommand;
theCommand = this.getCommand();
strategy.appendField(locator, this, "command", buffer, theCommand);
}
{
String theMessage;
theMessage = this.getMessage();
strategy.appendField(locator, this, "message", buffer, theMessage);
}
{
boolean theSuccess;
theSuccess = (true?this.isSuccess():false);
strategy.appendField(locator, this, "success", buffer, theSuccess);
}
return buffer;
}
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof BlackboardErrorResponse)) {
return false;
}
if (this == object) {
return true;
}
final BlackboardErrorResponse that = ((BlackboardErrorResponse) object);
{
String lhsCommand;
lhsCommand = this.getCommand();
String rhsCommand;
rhsCommand = that.getCommand();
if (!strategy.equals(LocatorUtils.property(thisLocator, "command", lhsCommand), LocatorUtils.property(thatLocator, "command", rhsCommand), lhsCommand, rhsCommand)) {
return false;
}
}
{
String lhsMessage;
lhsMessage = this.getMessage();
String rhsMessage;
rhsMessage = that.getMessage();
if (!strategy.equals(LocatorUtils.property(thisLocator, "message", lhsMessage), LocatorUtils.property(thatLocator, "message", rhsMessage), lhsMessage, rhsMessage)) {
return false;
}
}
{
boolean lhsSuccess;
lhsSuccess = (true?this.isSuccess():false);
boolean rhsSuccess;
rhsSuccess = (true?that.isSuccess():false);
if (!strategy.equals(LocatorUtils.property(thisLocator, "success", lhsSuccess), LocatorUtils.property(thatLocator, "success", rhsSuccess), lhsSuccess, rhsSuccess)) {
return false;
}
}
return true;
}
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
String theCommand;
theCommand = this.getCommand();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "command", theCommand), currentHashCode, theCommand);
}
{
String theMessage;
theMessage = this.getMessage();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "message", theMessage), currentHashCode, theMessage);
}
{
boolean theSuccess;
theSuccess = (true?this.isSuccess():false);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "success", theSuccess), currentHashCode, theSuccess);
}
return currentHashCode;
}
@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-03-11T12:37:42-06:00", comments = "JAXB RI v2.2.5-2")
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy