TestResource

public class TestResource
extends Object

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


Klasa modelująca wiadomość TestResource zwracaną przez interfejs API TFC.

Podsumowanie

Metody publiczne

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

Metody publiczne

fromJson

public static TestResource fromJson (JSONObject json)

Parametry
json JSONObject

Zwraca
TestResource

fromJsonArray

public static List<TestResource> fromJsonArray (JSONArray jsonArray)

Parametry
jsonArray JSONArray

Zwraca
List<TestResource>

Zgłasza
JSONException

getDecompress

public boolean getDecompress ()

Zwraca
boolean

getDecompressDir

public String getDecompressDir ()

Zwraca
String

getDecompressDir

public File getDecompressDir (File parentDir)

Parametry
parentDir File

Zwraca
File

getDecompressFiles

public List<String> getDecompressFiles ()

Zwraca
List<String>

getFile

public File getFile (File parentDir)

Parametry
parentDir File

Zwraca
File

getName

public String getName ()

Zwraca
String

getUrl

public String getUrl ()

Zwraca
String

mountZip

public boolean mountZip ()

Zwraca
boolean

toJson

public JSONObject toJson ()

Zwraca
JSONObject

Zgłasza
JSONException