package com.perforce.p4java_ext; import java.util.Map; /** * Wraps the returned map from P4Java with some helper methods. */ public class DepotSpec { private Map<String, Object> depotMap; public DepotSpec(Map<String, Object> depotMap) { this.depotMap = depotMap; } public Map<String, Object> getDepotMap() { return depotMap; } /** * A lot of values come out of the API with space, etc, appended, so this just makes sure the * value is just a normal string, cleaning up most client calls. * * @param key The client property, e.g., "Client", "Owner" * @return String value of the property */ public String get(String key) { return ((String) depotMap.get(key)).trim(); } public void put(String key, String value) { depotMap.put(key, value); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 9086 | tjuricek |
0.1.0 Initial release of p4java_ext Mostly just contains enough of the P4 API to build the test data initializer. About 4 commands have minimal testing, so it works. Kind of. |
||
#1 | 9085 | tjuricek | First import of the project, before package refactoring. |