Subversion Repositories XServices

Rev

Rev 10 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10 Rev 12
1
/*
1
/*
2
 *   Copyright 2010 Brian Rosenberger (Brutex Network)
2
 *   Copyright 2010 Brian Rosenberger (Brutex Network)
3
 *
3
 *
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
5
 *   you may not use this file except in compliance with the License.
5
 *   you may not use this file except in compliance with the License.
6
 *   You may obtain a copy of the License at
6
 *   You may obtain a copy of the License at
7
 *
7
 *
8
 *       http://www.apache.org/licenses/LICENSE-2.0
8
 *       http://www.apache.org/licenses/LICENSE-2.0
9
 *
9
 *
10
 *   Unless required by applicable law or agreed to in writing, software
10
 *   Unless required by applicable law or agreed to in writing, software
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *   See the License for the specific language governing permissions and
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
14
 *   limitations under the License.
15
 */
15
 */
16
 
16
 
17
package net.brutex.xservices.types;
17
package net.brutex.xservices.types;
-
 
18
 
18
 
19
import java.util.List;
19
import javax.xml.bind.annotation.XmlElement;
20
import javax.xml.bind.annotation.XmlElement;
20
import javax.xml.bind.annotation.XmlType;
21
import javax.xml.bind.annotation.XmlType;
21
import net.brutex.xservices.util.BrutexNamespaces;
22
import net.brutex.xservices.util.BrutexNamespaces;
22
 
23
 
23
/**
24
/**
24
 *
25
 *
25
 * @author Brian Rosenberger, bru@brutex.de
26
 * @author Brian Rosenberger, bru@brutex.de
26
 */
27
 */
27
@XmlType(namespace=BrutexNamespaces.WS_XSERVICES, name="ReturnCodeType")
28
@XmlType(namespace=BrutexNamespaces.WS_XSERVICES, name="ReturnCodeType")
28
public class ReturnCode {
29
public class ReturnCode {
29
 
30
 
30
    /**
31
    /**
31
     * Numeric return code.
32
     * Numeric return code.
32
     *
33
     *
33
     * The numeric return code of the last operation on the underlying operation
34
     * The numeric return code of the last operation on the underlying operation
34
     * systen (OS). In general the return code indicates the failure or success
35
     * systen (OS). In general the return code indicates the failure or success
35
     * of a command. Which value indicates success is dependent on the OS, most
36
     * of a command. Which value indicates success is dependent on the OS, most
36
     * linux based systems use "0" for success.
37
     * linux based systems use "0" for success.
37
     */
38
     */
38
    @XmlElement(required=true, nillable=false)
39
    @XmlElement(required=true, nillable=false)
39
    public int returnCode=0;
40
    public int returnCode=0;
40
 
41
 
41
    /**
42
    /**
42
     * Standard Out as provided by the OS.
43
     * Standard Out as provided by the OS.
43
     *
44
     *
44
     * The stdOut given by the last operation (if any).
45
     * The stdOut given by the last operation (if any).
45
     */
46
     */
46
    @XmlElement(name="stdOut", nillable=false)
47
    @XmlElement(name="stdOut", nillable=false)
47
    public String stdOut="";
48
    public String stdOut="";
48
 
49
 
49
    /**
50
    /**
50
     * The Standard Error as provided by the OS.
51
     * The Standard Error as provided by the OS.
51
     *
52
     *
52
     * The stdErr given by the last operation (if any). The presents of any
53
     * The stdErr given by the last operation (if any). The presents of any
53
     * value here ususally indicates that a failure has occured.
54
     * value here ususally indicates that a failure has occured.
54
     */
55
     */
55
    @XmlElement(name="stdErr", nillable=false)
56
    @XmlElement(name="stdErr", nillable=false)
56
    public String stdErr="";
57
    public String stdErr="";
-
 
58
 
-
 
59
 
-
 
60
    @XmlElement(name="propertyList", nillable=true)
-
 
61
    public List<AntProperty> property = null;
57
 
62
 
58
    /**
63
    /**
59
     * Create a new ReturnCode default constructor.
64
     * Create a new ReturnCode default constructor.
60
     */
65
     */
61
    public ReturnCode() {
66
    public ReturnCode() {
62
    }
67
    }
63
 
68
 
64
    /**
69
    /**
65
     * Create a new ReturnCode.
70
     * Create a new ReturnCode.
66
     *
71
     *
67
     * @param returnCode    return code integer value
72
     * @param returnCode    return code integer value
68
     * @param stdOut        standard out string
73
     * @param stdOut        standard out string
69
     * @param stdErr        standard error string
74
     * @param stdErr        standard error string
70
     */
75
     */
71
    public ReturnCode(int returnCode, String stdOut, String stdErr) {
76
    public ReturnCode(int returnCode, String stdOut, String stdErr, List<AntProperty> props) {
72
        this.returnCode = returnCode;
77
        this.returnCode = returnCode;
73
        this.stdOut = stdOut;
78
        this.stdOut = stdOut;
74
        this.stdErr = stdErr;
79
        this.stdErr = stdErr;
-
 
80
        this.property = props;
75
    }
81
    }
76
}
82
}