Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // 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 <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2013.03.16 at 04:20:11 PM EDT 
  //
  
  
  package com.ibm.jbatch.jsl.model;
 
 import java.util.List;

Java class for Step complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Step">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="properties" type="{http://xmlns.jcp.org/xml/ns/javaee}Properties" minOccurs="0"/>
         <element name="listeners" type="{http://xmlns.jcp.org/xml/ns/javaee}Listeners" minOccurs="0"/>
         <choice minOccurs="0">
           <element name="batchlet" type="{http://xmlns.jcp.org/xml/ns/javaee}Batchlet"/>
           <element name="chunk" type="{http://xmlns.jcp.org/xml/ns/javaee}Chunk"/>
         </choice>
         <element name="partition" type="{http://xmlns.jcp.org/xml/ns/javaee}Partition" minOccurs="0"/>
         <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="start-limit" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="allow-start-if-complete" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="next" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "Step", propOrder = {
     "properties",
     "listeners",
     "batchlet",
     "chunk",
     "partition",
     "transitionElements"
 })
 @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-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 Step implements com.ibm.jbatch.container.jsl.ExecutionElement {
 
     @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
     protected JSLProperties properties;
     @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
     protected Listeners listeners;
     @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
     protected Batchlet batchlet;
     @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
     protected Chunk chunk;
     @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
     protected Partition partition;
     @XmlElements({
         @XmlElement(name = "end", type = End.class),
         @XmlElement(name = "next", type = Next.class),
         @XmlElement(name = "fail", type = Fail.class),
         @XmlElement(name = "stop", type = Stop.class)
     })
     @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
     @XmlAttribute(name = "id", required = true)
     @XmlID
     @XmlSchemaType(name = "ID")
     @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    protected String id;
    @XmlAttribute(name = "start-limit")
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    protected String startLimit;
    @XmlAttribute(name = "allow-start-if-complete")
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    protected String allowStartIfComplete;
    @XmlAttribute(name = "next")
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    protected String nextFromAttribute;

    
Gets the value of the properties property.

Returns:
possible object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public JSLProperties getProperties() {
        return ;
    }

    
Sets the value of the properties property.

Parameters:
value allowed object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public void setProperties(JSLProperties value) {
        this. = value;
    }

    
Gets the value of the listeners property.

Returns:
possible object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public Listeners getListeners() {
        return ;
    }

    
Sets the value of the listeners property.

Parameters:
value allowed object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public void setListeners(Listeners value) {
        this. = value;
    }

    
Gets the value of the batchlet property.

Returns:
possible object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public Batchlet getBatchlet() {
        return ;
    }

    
Sets the value of the batchlet property.

Parameters:
value allowed object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public void setBatchlet(Batchlet value) {
        this. = value;
    }

    
Gets the value of the chunk property.

Returns:
possible object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public Chunk getChunk() {
        return ;
    }

    
Sets the value of the chunk property.

Parameters:
value allowed object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public void setChunk(Chunk value) {
        this. = value;
    }

    
Gets the value of the partition property.

Returns:
possible object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public Partition getPartition() {
        return ;
    }

    
Sets the value of the partition property.

Parameters:
value allowed object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public void setPartition(Partition value) {
        this. = value;
    }

    
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

    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
        if ( == null) {
             = new ArrayList<TransitionElement>();
        }
        return this.;
    }

    
Gets the value of the id property.

Returns:
possible object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public String getId() {
        return ;
    }

    
Sets the value of the id property.

Parameters:
value allowed object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public void setId(String value) {
        this. = value;
    }

    
Gets the value of the startLimit property.

Returns:
possible object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public String getStartLimit() {
        return ;
    }

    
Sets the value of the startLimit property.

Parameters:
value allowed object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public void setStartLimit(String value) {
        this. = value;
    }

    
Gets the value of the allowStartIfComplete property.

Returns:
possible object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public String getAllowStartIfComplete() {
        return ;
    }

    
Sets the value of the allowStartIfComplete property.

Parameters:
value allowed object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public void setAllowStartIfComplete(String value) {
        this. = value;
    }

    
Gets the value of the nextFromAttribute property.

Returns:
possible object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public String getNextFromAttribute() {
        return ;
    }

    
Sets the value of the nextFromAttribute property.

Parameters:
value allowed object is
    @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2013-03-16T04:20:11-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
    public void setNextFromAttribute(String value) {
        this. = value;
    }
    /*
     * Appended by build tooling.
     */
	public String toString() {
	    StringBuffer buf = new StringBuffer(100);
	    buf.append("Step: id=" + );
	    buf.append(", startLimit=" + );
	    buf.append(", allowStartIfComplete=" + );
	    buf.append("\nnextFromAttribute =" + );
		buf.append("\nTransition elements: \n");
		if ( == null) {
			buf.append("<none>");
else {
			int j = 0;
				buf.append("transition element[" + j + "]:" + e + "\n");
				j++;
			}
		}
	    buf.append("\nProperties = " + com.ibm.jbatch.jsl.util.PropertiesToStringHelper.getString());
	    buf.append("\n");
	    if ( != null) {
	    	buf.append("Contains batchlet=" + );
	    }
	    if ( != null) {
	    	buf.append("Contains chunk=" + );
	    }
	    return buf.toString();
    }
New to GrepCode? Check out our FAQ X