| // |
| // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs |
| // 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: 2011.04.21 at 02:35:28 PM CDT |
| // |
| |
| package org.eclipse.ptp.rm.jaxb.core.data; |
| |
| import java.util.ArrayList; |
| import java.util.List; |
| 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.XmlType; |
| |
| /** |
| * |
| * Useful for setting values based on other values produced during tokenization. |
| * A test is one or more comparison operations (with arbitrary nesting inside |
| * the three boolean operators), plus a set of actions to apply to the target |
| * fields in the case of either success or failure (the "else" element). See |
| * tokenizer-examples-xml, ex. 3, or the "get-job-status" example. |
| * |
| * |
| * <p> |
| * Java class for test-type complex type. |
| * |
| * <p> |
| * The following schema fragment specifies the expected content contained within |
| * this class. |
| * |
| * <pre> |
| * <complexType name="test-type"> |
| * <complexContent> |
| * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| * <sequence> |
| * <element name="test" type="{http://org.eclipse.ptp/rm}test-type" maxOccurs="unbounded" minOccurs="0"/> |
| * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="2" minOccurs="0"/> |
| * <choice maxOccurs="unbounded" minOccurs="0"> |
| * <element name="add" type="{http://org.eclipse.ptp/rm}add-type"/> |
| * <element name="append" type="{http://org.eclipse.ptp/rm}append-type"/> |
| * <element name="put" type="{http://org.eclipse.ptp/rm}put-type"/> |
| * <element name="set" type="{http://org.eclipse.ptp/rm}set-type"/> |
| * </choice> |
| * <element name="else" minOccurs="0"> |
| * <complexType> |
| * <complexContent> |
| * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| * <choice maxOccurs="unbounded"> |
| * <element name="add" type="{http://org.eclipse.ptp/rm}add-type"/> |
| * <element name="append" type="{http://org.eclipse.ptp/rm}append-type"/> |
| * <element name="put" type="{http://org.eclipse.ptp/rm}put-type"/> |
| * <element name="set" type="{http://org.eclipse.ptp/rm}set-type"/> |
| * </choice> |
| * </restriction> |
| * </complexContent> |
| * </complexType> |
| * </element> |
| * </sequence> |
| * <attribute name="op"> |
| * <simpleType> |
| * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> |
| * <enumeration value="EQ"/> |
| * <enumeration value="LT"/> |
| * <enumeration value="GT"/> |
| * <enumeration value="LE"/> |
| * <enumeration value="GE"/> |
| * <enumeration value="AND"/> |
| * <enumeration value="OR"/> |
| * <enumeration value="NOT"/> |
| * </restriction> |
| * </simpleType> |
| * </attribute> |
| * </restriction> |
| * </complexContent> |
| * </complexType> |
| * </pre> |
| * |
| * |
| */ |
| @XmlAccessorType(XmlAccessType.FIELD) |
| @XmlType(name = "test-type", propOrder = { "test", "value", "addOrAppendOrPut", "_else" }) |
| public class TestType { |
| |
| protected List<TestType> test; |
| protected List<String> value; |
| @XmlElements({ @XmlElement(name = "add", type = AddType.class), @XmlElement(name = "put", type = PutType.class), |
| @XmlElement(name = "set", type = SetType.class), @XmlElement(name = "append", type = AppendType.class) }) |
| protected List<Object> addOrAppendOrPut; |
| @XmlElement(name = "else") |
| protected TestType.Else _else; |
| @XmlAttribute |
| protected String op; |
| |
| /** |
| * Gets the value of the test property. |
| * |
| * <p> |
| * 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 |
| * <CODE>set</CODE> method for the test property. |
| * |
| * <p> |
| * For example, to add a new item, do as follows: |
| * |
| * <pre> |
| * getTest().add(newItem); |
| * </pre> |
| * |
| * |
| * <p> |
| * Objects of the following type(s) are allowed in the list {@link TestType } |
| * |
| * |
| */ |
| public List<TestType> getTest() { |
| if (test == null) { |
| test = new ArrayList<TestType>(); |
| } |
| return this.test; |
| } |
| |
| /** |
| * Gets the value of the value property. |
| * |
| * <p> |
| * 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 |
| * <CODE>set</CODE> method for the value property. |
| * |
| * <p> |
| * For example, to add a new item, do as follows: |
| * |
| * <pre> |
| * getValue().add(newItem); |
| * </pre> |
| * |
| * |
| * <p> |
| * Objects of the following type(s) are allowed in the list {@link String } |
| * |
| * |
| */ |
| public List<String> getValue() { |
| if (value == null) { |
| value = new ArrayList<String>(); |
| } |
| return this.value; |
| } |
| |
| /** |
| * Gets the value of the addOrAppendOrPut property. |
| * |
| * <p> |
| * 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 |
| * <CODE>set</CODE> method for the addOrAppendOrPut property. |
| * |
| * <p> |
| * For example, to add a new item, do as follows: |
| * |
| * <pre> |
| * getAddOrAppendOrPut().add(newItem); |
| * </pre> |
| * |
| * |
| * <p> |
| * Objects of the following type(s) are allowed in the list {@link AddType } |
| * {@link PutType } {@link SetType } {@link AppendType } |
| * |
| * |
| */ |
| public List<Object> getAddOrAppendOrPut() { |
| if (addOrAppendOrPut == null) { |
| addOrAppendOrPut = new ArrayList<Object>(); |
| } |
| return this.addOrAppendOrPut; |
| } |
| |
| /** |
| * Gets the value of the else property. |
| * |
| * @return possible object is {@link TestType.Else } |
| * |
| */ |
| public TestType.Else getElse() { |
| return _else; |
| } |
| |
| /** |
| * Sets the value of the else property. |
| * |
| * @param value |
| * allowed object is {@link TestType.Else } |
| * |
| */ |
| public void setElse(TestType.Else value) { |
| this._else = value; |
| } |
| |
| /** |
| * Gets the value of the op property. |
| * |
| * @return possible object is {@link String } |
| * |
| */ |
| public String getOp() { |
| return op; |
| } |
| |
| /** |
| * Sets the value of the op property. |
| * |
| * @param value |
| * allowed object is {@link String } |
| * |
| */ |
| public void setOp(String value) { |
| this.op = value; |
| } |
| |
| /** |
| * <p> |
| * Java class for anonymous complex type. |
| * |
| * <p> |
| * The following schema fragment specifies the expected content contained |
| * within this class. |
| * |
| * <pre> |
| * <complexType> |
| * <complexContent> |
| * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| * <choice maxOccurs="unbounded"> |
| * <element name="add" type="{http://org.eclipse.ptp/rm}add-type"/> |
| * <element name="append" type="{http://org.eclipse.ptp/rm}append-type"/> |
| * <element name="put" type="{http://org.eclipse.ptp/rm}put-type"/> |
| * <element name="set" type="{http://org.eclipse.ptp/rm}set-type"/> |
| * </choice> |
| * </restriction> |
| * </complexContent> |
| * </complexType> |
| * </pre> |
| * |
| * |
| */ |
| @XmlAccessorType(XmlAccessType.FIELD) |
| @XmlType(name = "", propOrder = { "addOrAppendOrPut" }) |
| public static class Else { |
| |
| @XmlElements({ @XmlElement(name = "put", type = PutType.class), @XmlElement(name = "append", type = AppendType.class), |
| @XmlElement(name = "add", type = AddType.class), @XmlElement(name = "set", type = SetType.class) }) |
| protected List<Object> addOrAppendOrPut; |
| |
| /** |
| * Gets the value of the addOrAppendOrPut property. |
| * |
| * <p> |
| * 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 |
| * <CODE>set</CODE> method for the addOrAppendOrPut property. |
| * |
| * <p> |
| * For example, to add a new item, do as follows: |
| * |
| * <pre> |
| * getAddOrAppendOrPut().add(newItem); |
| * </pre> |
| * |
| * |
| * <p> |
| * Objects of the following type(s) are allowed in the list |
| * {@link PutType } {@link AppendType } {@link AddType } {@link SetType } |
| * |
| * |
| */ |
| public List<Object> getAddOrAppendOrPut() { |
| if (addOrAppendOrPut == null) { |
| addOrAppendOrPut = new ArrayList<Object>(); |
| } |
| return this.addOrAppendOrPut; |
| } |
| |
| } |
| |
| } |