/xservices/trunk/src/java/net/brutex/xservices/types/AntProperty.java |
---|
0,0 → 1,44 |
/* |
* To change this template, choose Tools | Templates |
* and open the template in the editor. |
*/ |
package net.brutex.xservices.types; |
import java.util.ArrayList; |
import java.util.List; |
import java.util.Map; |
import javax.xml.bind.annotation.XmlElement; |
import javax.xml.bind.annotation.XmlRootElement; |
/** |
* |
* @author brian |
*/ |
@XmlRootElement |
public class AntProperty { |
@XmlElement(required=true) |
public String name =""; |
@XmlElement(required=true) |
public String value=""; |
public static List<AntProperty> createAntPropertyList(Map<String, String> map) { |
List<AntProperty> list = new ArrayList<AntProperty>(); |
for(Map.Entry<String, String> e : map.entrySet()) { |
list.add(new AntProperty(e.getKey(), e.getValue())); |
} |
return list; |
} |
public AntProperty(String name, String value) { |
this.name = name; |
this.value = value; |
} |
public AntProperty() { |
} |
} |
/xservices/trunk/src/java/net/brutex/xservices/types/ReturnCode.java |
---|
16,6 → 16,7 |
package net.brutex.xservices.types; |
import java.util.List; |
import javax.xml.bind.annotation.XmlElement; |
import javax.xml.bind.annotation.XmlType; |
import net.brutex.xservices.util.BrutexNamespaces; |
55,6 → 56,10 |
@XmlElement(name="stdErr", nillable=false) |
public String stdErr=""; |
@XmlElement(name="propertyList", nillable=true) |
public List<AntProperty> property = null; |
/** |
* Create a new ReturnCode default constructor. |
*/ |
68,9 → 73,10 |
* @param stdOut standard out string |
* @param stdErr standard error string |
*/ |
public ReturnCode(int returnCode, String stdOut, String stdErr) { |
public ReturnCode(int returnCode, String stdOut, String stdErr, List<AntProperty> props) { |
this.returnCode = returnCode; |
this.stdOut = stdOut; |
this.stdErr = stdErr; |
this.property = props; |
} |
} |