TestResource

public class TestResource
extends Object

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


Una classe per modellare un messaggio TestResource restituito dall'API TFC.

Riepilogo

Metodi pubblici

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()

Metodi pubblici

fromJson

public static TestResource fromJson (JSONObject json)

Parametri
json JSONObject

Resi
TestResource

fromJsonArray

public static List<TestResource> fromJsonArray (JSONArray jsonArray)

Parametri
jsonArray JSONArray

Resi
List<TestResource>

Genera
JSONException

getDecompress

public boolean getDecompress ()

Resi
boolean

getDecompressDir

public String getDecompressDir ()

Resi
String

getDecompressDir

public File getDecompressDir (File parentDir)

Parametri
parentDir File

Resi
File

getDecompressFiles

public List<String> getDecompressFiles ()

Resi
List<String>

getFile

public File getFile (File parentDir)

Parametri
parentDir File

Resi
File

getName

public String getName ()

Resi
String

getUrl

public String getUrl ()

Resi
String

mountZip

public boolean mountZip ()

Resi
boolean

toJson

public JSONObject toJson ()

Resi
JSONObject

Genera
JSONException