nz.co.senanque.workflow.orderinstances.OrderResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-workflow Show documentation
Show all versions of simple-workflow Show documentation
Example of a simple workflow in a bundle. This workflow doesn't actually do anything.
The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.04.23 at 11:20:08 PM UTC
//
package nz.co.senanque.workflow.orderinstances;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import nz.co.senanque.validationengine.ObjectMetadata;
import nz.co.senanque.validationengine.ValidationObject;
import nz.co.senanque.validationengine.ValidationSession;
import nz.co.senanque.validationengine.ValidationUtils;
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 OrderResponse complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="OrderResponse">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="rejected" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OrderResponse", propOrder = {
"rejected"
})
@XmlRootElement(name = "OrderResponse")
public class OrderResponse
implements ValidationObject, Equals, HashCode, ToString
{
protected boolean rejected;
@XmlTransient
protected ValidationSession m_validationSession;
@XmlTransient
protected ObjectMetadata m_metadata;
@XmlTransient
public final static String REJECTED = "rejected";
public OrderResponse() {
ValidationUtils.setDefaults(this);
}
/**
* Gets the value of the rejected property.
*
*/
public boolean isRejected() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
return rejected;
}
/**
* Sets the value of the rejected property.
*
*/
public void setRejected(boolean value) {
getMetadata().removeUnknown("rejected");
if (m_validationSession!= null) {
m_validationSession.set(this, "rejected", value, rejected);
}
this.rejected = value;
if (m_validationSession!= null) {
m_validationSession.invokeListeners(this, "rejected", value, rejected);
}
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof OrderResponse)) {
return false;
}
if (this == object) {
return true;
}
final OrderResponse that = ((OrderResponse) object);
{
boolean lhsRejected;
lhsRejected = (true?this.isRejected():false);
boolean rhsRejected;
rhsRejected = (true?that.isRejected():false);
if (!strategy.equals(LocatorUtils.property(thisLocator, "rejected", lhsRejected), LocatorUtils.property(thatLocator, "rejected", rhsRejected), lhsRejected, rhsRejected)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
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;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
boolean theRejected;
theRejected = (true?this.isRejected():false);
strategy.appendField(locator, this, "rejected", buffer, theRejected);
}
return buffer;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
boolean theRejected;
theRejected = (true?this.isRejected():false);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rejected", theRejected), currentHashCode, theRejected);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
@Transient
public ObjectMetadata getMetadata() {
if (m_validationSession!= null) {
m_validationSession.clean(this);
}
if (m_metadata == null) {
m_metadata = new ObjectMetadata();
}
return m_metadata;
}
@XmlTransient
public void setValidationSession(ValidationSession validationSession) {
m_validationSession = validationSession;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy