TestResource

public class TestResource
extends Object

java.lang.Object
com.android.tradefed.cluster.TestResource


TFC API から返される TestResource メッセージをモデル化するクラス。

概要

パブリック メソッド

static TestResource fromJson(JSONObject json)
static List<TestResource> fromJsonArray(JSONArray jsonArray)
boolean getDecompress()
String getDecompressDir()
File getDecompressDir(File parentDir)
List<String> getDecompressFiles()
File getFile(File parentDir)
String getName()
String getUrl()
boolean mountZip()
JSONObject toJson()

パブリック メソッド

fromJson

public static TestResource fromJson (JSONObject json)

パラメータ
json JSONObject

戻り値
TestResource

fromJsonArray

public static List<TestResource> fromJsonArray (JSONArray jsonArray)

パラメータ
jsonArray JSONArray

戻り値
List<TestResource>

例外
JSONException

getDecompress

public boolean getDecompress ()

戻り値
boolean

getDecompressDir

public String getDecompressDir ()

戻り値
String

getDecompressDir

public File getDecompressDir (File parentDir)

パラメータ
parentDir File

戻り値
File

getDecompressFiles

public List<String> getDecompressFiles ()

戻り値
List<String>

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