TestResource
public
class
TestResource
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.cluster.TestResource |
用于对 TFC API 返回的 TestResource 消息进行建模的类。
摘要
公共方法 | |
|---|---|
static
TestResource
|
fromJson(JSONObject json)
|
static
|
fromJsonArray(JSONArray jsonArray)
|
boolean
|
getDecompress()
|
String
|
getDecompressDir()
|
File
|
getDecompressDir(File parentDir)
|
|
getDecompressFiles()
|
File
|
getFile(File parentDir)
|
String
|
getName()
|
String
|
getUrl()
|
boolean
|
mountZip()
|
JSONObject
|
toJson()
|
公共方法
fromJsonArray
public staticfromJsonArray (JSONArray jsonArray)
| 参数 | |
|---|---|
jsonArray |
JSONArray |
| 返回 | |
|---|---|
|
|
| 抛出 | |
|---|---|
JSONException |
|
getDecompress
public boolean getDecompress ()
| 返回 | |
|---|---|
boolean |
|
getDecompressDir
public String getDecompressDir ()
| 返回 | |
|---|---|
String |
|
getDecompressDir
public File getDecompressDir (File parentDir)
| 参数 | |
|---|---|
parentDir |
File |
| 返回 | |
|---|---|
File |
|
getDecompressFiles
publicgetDecompressFiles ()
| 返回 | |
|---|---|
|
|
getFile
public File getFile (File parentDir)
| 参数 | |
|---|---|
parentDir |
File |
| 返回 | |
|---|---|
File |
|
getName
public String getName ()
| 返回 | |
|---|---|
String |
|
getUrl
public String getUrl ()
| 返回 | |
|---|---|
String |
|
mountZip
public boolean mountZip ()
| 返回 | |
|---|---|
boolean |
|
toJson
public JSONObject toJson ()
| 返回 | |
|---|---|
JSONObject |
|
| 抛出 | |
|---|---|
JSONException |
|