org.aktivecortex.core.notification.TaskImpl Maven / Gradle / Ivy
//
// 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: 2013.12.18 at 03:41:02 PM CET
//
package org.aktivecortex.core.notification;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.aktivecortex.api.notification.Task;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
* Java class for TaskImpl complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TaskImpl">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="processId" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TaskImpl", propOrder = {
"id",
"processId"
})
public class TaskImpl implements Cloneable, Task
{
@XmlElement(required = true)
protected String id;
@XmlElement(required = true)
protected String processId;
/**
* Default no-arg constructor
*
*/
public TaskImpl() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public TaskImpl(final String id, final String processId) {
this.id = id;
this.processId = processId;
}
/**
* Creates a new {@code TaskImpl} instance by deeply copying a given {@code TaskImpl} instance.
*
*
* @param o
* The instance to copy.
* @throws NullPointerException
* if {@code o} is {@code null}.
*/
public TaskImpl(final TaskImpl o) {
// CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
super();
if (o == null) {
throw new NullPointerException("Cannot create a copy of 'TaskImpl' from 'null'.");
}
// CBuiltinLeafInfo: java.lang.String
this.id = ((o.id == null)?null:o.getId());
// CBuiltinLeafInfo: java.lang.String
this.processId = ((o.processId == null)?null:o.getProcessId());
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the processId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProcessId() {
return processId;
}
/**
* Sets the value of the processId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProcessId(String value) {
this.processId = value;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
public TaskImpl withId(String value) {
setId(value);
return this;
}
public TaskImpl withProcessId(String value) {
setProcessId(value);
return this;
}
/**
* Creates and returns a deep copy of this object.
*
*
* @return
* A deep copy of this object.
*/
@Override
public TaskImpl clone() {
try {
{
// CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
final TaskImpl clone = ((TaskImpl) super.clone());
// CBuiltinLeafInfo: java.lang.String
clone.id = ((this.id == null)?null:this.getId());
// CBuiltinLeafInfo: java.lang.String
clone.processId = ((this.processId == null)?null:this.getProcessId());
return clone;
}
} catch (CloneNotSupportedException e) {
// Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
throw new AssertionError(e);
}
}
}