blob: 674e539706badcb6967d39108c04a4432c794885 [file] [log] [blame]
//
// 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.XmlType;
/**
* <p>
* Java class for command-type complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within
* this class.
*
* <pre>
* &lt;complexType name="command-type">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="arg" type="{http://org.eclipse.ptp/rm}arg-type" maxOccurs="unbounded"/>
* &lt;element name="environment" type="{http://org.eclipse.ptp/rm}name-value-pair-type" maxOccurs="unbounded" minOccurs="0"/>
* &lt;element name="stdout-parser" type="{http://org.eclipse.ptp/rm}tokenizer-type" minOccurs="0"/>
* &lt;element name="stderr-parser" type="{http://org.eclipse.ptp/rm}tokenizer-type" minOccurs="0"/>
* &lt;element name="redirect-parser" type="{http://org.eclipse.ptp/rm}tokenizer-type" minOccurs="0"/>
* &lt;/sequence>
* &lt;attribute name="directory" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="ignoreExitStatus" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* &lt;attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="redirectStderr" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* &lt;attribute name="replaceEnvironment" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
* &lt;attribute name="streamBufferLimit" type="{http://www.w3.org/2001/XMLSchema}int" default="-1" />
* &lt;attribute name="waitForId" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "command-type", propOrder = { "arg", "environment", "stdoutParser", "stderrParser", "redirectParser" })
public class CommandType {
@XmlElement(required = true)
protected List<ArgType> arg;
protected List<NameValuePairType> environment;
@XmlElement(name = "stdout-parser")
protected TokenizerType stdoutParser;
@XmlElement(name = "stderr-parser")
protected TokenizerType stderrParser;
@XmlElement(name = "redirect-parser")
protected TokenizerType redirectParser;
@XmlAttribute
protected String directory;
@XmlAttribute
protected Boolean ignoreExitStatus;
@XmlAttribute(required = true)
protected String name;
@XmlAttribute
protected Boolean redirectStderr;
@XmlAttribute
protected Boolean replaceEnvironment;
@XmlAttribute
protected Integer streamBufferLimit;
@XmlAttribute
protected Boolean waitForId;
/**
* Gets the value of the arg 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 arg property.
*
* <p>
* For example, to add a new item, do as follows:
*
* <pre>
* getArg().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list {@link ArgType }
*
*
*/
public List<ArgType> getArg() {
if (arg == null) {
arg = new ArrayList<ArgType>();
}
return this.arg;
}
/**
* Gets the value of the directory property.
*
* @return possible object is {@link String }
*
*/
public String getDirectory() {
return directory;
}
/**
* Gets the value of the environment 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 environment property.
*
* <p>
* For example, to add a new item, do as follows:
*
* <pre>
* getEnvironment().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link NameValuePairType }
*
*
*/
public List<NameValuePairType> getEnvironment() {
if (environment == null) {
environment = new ArrayList<NameValuePairType>();
}
return this.environment;
}
/**
* Gets the value of the name property.
*
* @return possible object is {@link String }
*
*/
public String getName() {
return name;
}
/**
* Gets the value of the redirectParser property.
*
* @return possible object is {@link TokenizerType }
*
*/
public TokenizerType getRedirectParser() {
return redirectParser;
}
/**
* Gets the value of the stderrParser property.
*
* @return possible object is {@link TokenizerType }
*
*/
public TokenizerType getStderrParser() {
return stderrParser;
}
/**
* Gets the value of the stdoutParser property.
*
* @return possible object is {@link TokenizerType }
*
*/
public TokenizerType getStdoutParser() {
return stdoutParser;
}
/**
* Gets the value of the streamBufferLimit property.
*
* @return possible object is {@link Integer }
*
*/
public int getStreamBufferLimit() {
if (streamBufferLimit == null) {
return -1;
} else {
return streamBufferLimit;
}
}
/**
* Gets the value of the ignoreExitStatus property.
*
* @return possible object is {@link Boolean }
*
*/
public boolean isIgnoreExitStatus() {
if (ignoreExitStatus == null) {
return false;
} else {
return ignoreExitStatus;
}
}
/**
* Gets the value of the redirectStderr property.
*
* @return possible object is {@link Boolean }
*
*/
public boolean isRedirectStderr() {
if (redirectStderr == null) {
return false;
} else {
return redirectStderr;
}
}
/**
* Gets the value of the replaceEnvironment property.
*
* @return possible object is {@link Boolean }
*
*/
public boolean isReplaceEnvironment() {
if (replaceEnvironment == null) {
return false;
} else {
return replaceEnvironment;
}
}
/**
* Gets the value of the waitForId property.
*
* @return possible object is {@link Boolean }
*
*/
public boolean isWaitForId() {
if (waitForId == null) {
return true;
} else {
return waitForId;
}
}
/**
* Sets the value of the directory property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setDirectory(String value) {
this.directory = value;
}
/**
* Sets the value of the ignoreExitStatus property.
*
* @param value
* allowed object is {@link Boolean }
*
*/
public void setIgnoreExitStatus(Boolean value) {
this.ignoreExitStatus = value;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Sets the value of the redirectParser property.
*
* @param value
* allowed object is {@link TokenizerType }
*
*/
public void setRedirectParser(TokenizerType value) {
this.redirectParser = value;
}
/**
* Sets the value of the redirectStderr property.
*
* @param value
* allowed object is {@link Boolean }
*
*/
public void setRedirectStderr(Boolean value) {
this.redirectStderr = value;
}
/**
* Sets the value of the replaceEnvironment property.
*
* @param value
* allowed object is {@link Boolean }
*
*/
public void setReplaceEnvironment(Boolean value) {
this.replaceEnvironment = value;
}
/**
* Sets the value of the stderrParser property.
*
* @param value
* allowed object is {@link TokenizerType }
*
*/
public void setStderrParser(TokenizerType value) {
this.stderrParser = value;
}
/**
* Sets the value of the stdoutParser property.
*
* @param value
* allowed object is {@link TokenizerType }
*
*/
public void setStdoutParser(TokenizerType value) {
this.stdoutParser = value;
}
/**
* Sets the value of the streamBufferLimit property.
*
* @param value
* allowed object is {@link Integer }
*
*/
public void setStreamBufferLimit(Integer value) {
this.streamBufferLimit = value;
}
/**
* Sets the value of the waitForId property.
*
* @param value
* allowed object is {@link Boolean }
*
*/
public void setWaitForId(Boolean value) {
this.waitForId = value;
}
}