com.ibm.jbatch.jsl.model.Flow Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vIBM 2.2.3-11/28/2011 06:21 AM(foreman)-
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.03.18 at 06:45:00 PM EDT
//
package com.ibm.jbatch.jsl.model;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.ibm.jbatch.container.jsl.ExecutionElement;
import com.ibm.jbatch.container.jsl.TransitionElement;
/**
* Java class for Flow complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Flow">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element name="decision" type="{http://xmlns.jcp.org/xml/ns/javaee}Decision"/>
* <element name="flow" type="{http://xmlns.jcp.org/xml/ns/javaee}Flow"/>
* <element name="split" type="{http://xmlns.jcp.org/xml/ns/javaee}Split"/>
* <element name="step" type="{http://xmlns.jcp.org/xml/ns/javaee}Step"/>
* </choice>
* <group ref="{http://xmlns.jcp.org/xml/ns/javaee}TransitionElements" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
* <attribute name="next" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Flow", propOrder = {
"executionElements",
"transitionElements"
})
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-18T06:45:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
/**
* Modified post-XJC-gen by custom JSR352 RI build logic
* since we can't seem to get JAXB's XJC to generate
* elements implementing a common interface.
*
* This custom logic adds the interface implementation :
* implements com.ibm.jbatch.container.jsl.ExecutionElement
*/
public class Flow implements com.ibm.jbatch.container.jsl.ExecutionElement {
@XmlElements({
@XmlElement(name = "step", type = Step.class),
@XmlElement(name = "split", type = Split.class),
@XmlElement(name = "flow", type = Flow.class),
@XmlElement(name = "decision", type = Decision.class)
})
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-18T06:45:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
protected List executionElements;
@XmlElements({
@XmlElement(name = "stop", type = Stop.class),
@XmlElement(name = "next", type = Next.class),
@XmlElement(name = "fail", type = Fail.class),
@XmlElement(name = "end", type = End.class)
})
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-18T06:45:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
protected List transitionElements;
@XmlAttribute(name = "id", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-18T06:45:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
protected String id;
@XmlAttribute(name = "next")
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-18T06:45:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
protected String nextFromAttribute;
/**
* Gets the value of the executionElements property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the executionElements property.
*
*
* For example, to add a new item, do as follows:
*
* getExecutionElements().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Step }
* {@link Split }
* {@link Flow }
* {@link Decision }
*
*
*/
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-18T06:45:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List getExecutionElements() {
if (executionElements == null) {
executionElements = new ArrayList();
}
return this.executionElements;
}
/**
* Gets the value of the transitionElements property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the transitionElements property.
*
*
* For example, to add a new item, do as follows:
*
* getTransitionElements().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Stop }
* {@link Next }
* {@link Fail }
* {@link End }
*
*
*/
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-18T06:45:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List getTransitionElements() {
if (transitionElements == null) {
transitionElements = new ArrayList();
}
return this.transitionElements;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-18T06:45:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-18T06:45:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the nextFromAttribute property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-18T06:45:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public String getNextFromAttribute() {
return nextFromAttribute;
}
/**
* Sets the value of the nextFromAttribute property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-18T06:45:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public void setNextFromAttribute(String value) {
this.nextFromAttribute = value;
}
/*
* Appended by build tooling.
*/
public String toString() {
StringBuffer buf = new StringBuffer(100);
buf.append("Flow: id=" + id);
buf.append("\nExecution elements: \n");
if (executionElements == null) {
buf.append("");
} else {
int i = 0;
for ( com.ibm.jbatch.container.jsl.ExecutionElement e : executionElements) {
buf.append("element[" + i + "]:" + e + "\n");
i++;
}
}
buf.append("\nnextFromAttribute =" + nextFromAttribute);
buf.append("\nTransition elements: \n");
if (transitionElements == null) {
buf.append("");
} else {
int j = 0;
for ( com.ibm.jbatch.container.jsl.TransitionElement e : transitionElements) {
buf.append("transition element[" + j + "]:" + e + "\n");
j++;
}
}
buf.append("\n");
return buf.toString();
}
}