Subversion Repositories XServices

Rev

Rev 6 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 10
Line 16... Line 16...
16
 
16
 
Line 17... Line 17...
17
package net.brutex.xservices.types;
17
package net.brutex.xservices.types;
18
 
18
 
-
 
19
import javax.xml.bind.annotation.XmlElement;
Line 19... Line 20...
19
import javax.xml.bind.annotation.XmlElement;
20
import javax.xml.bind.annotation.XmlType;
20
import javax.xml.bind.annotation.XmlType;
21
import net.brutex.xservices.util.BrutexNamespaces;
21
 
22
 
22
/**
23
/**
23
 *
24
 *
24
 * @author Brian Rosenberger, bru@brutex.de
25
 * @author Brian Rosenberger, bru@brutex.de
Line -... Line 26...
-
 
26
 */
-
 
27
@XmlType(namespace=BrutexNamespaces.WS_XSERVICES, name="ReturnCodeType")
-
 
28
public class ReturnCode {
-
 
29
 
-
 
30
    /**
-
 
31
     * Numeric return code.
-
 
32
     *
-
 
33
     * The numeric return code of the last operation on the underlying operation
25
 */
34
     * systen (OS). In general the return code indicates the failure or success
26
@XmlType(namespace="http://ws.xservices.brutex.net")
35
     * of a command. Which value indicates success is dependent on the OS, most
27
public class ReturnCode {
36
     * linux based systems use "0" for success.
-
 
37
     */
-
 
38
    @XmlElement(required=true, nillable=false)
-
 
39
    public int returnCode=0;
-
 
40
 
-
 
41
    /**
-
 
42
     * Standard Out as provided by the OS.
28
 
43
     *
-
 
44
     * The stdOut given by the last operation (if any).
-
 
45
     */
-
 
46
    @XmlElement(name="stdOut", nillable=false)
-
 
47
    public String stdOut="";
-
 
48
 
-
 
49
    /**
-
 
50
     * The Standard Error as provided by the OS.
-
 
51
     *
29
    @XmlElement(required=true)
52
     * The stdErr given by the last operation (if any). The presents of any
30
    public int returnCode;
53
     * value here ususally indicates that a failure has occured.
-
 
54
     */
-
 
55
    @XmlElement(name="stdErr", nillable=false)
-
 
56
    public String stdErr="";
31
 
57
 
32
    public String stdOut;
58
    /**
Line -... Line 59...
-
 
59
     * Create a new ReturnCode default constructor.
-
 
60
     */
-
 
61
    public ReturnCode() {
-
 
62
    }
-
 
63
 
-
 
64
    /**
-
 
65
     * Create a new ReturnCode.
33
    public String stdErr;
66
     *
34
 
67
     * @param returnCode    return code integer value
35
    public ReturnCode() {
68
     * @param stdOut        standard out string
36
    }
69
     * @param stdErr        standard error string
37
 
70
     */