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 fromJsonArray (JSONArray jsonArray)
boolean getDecompress ()
String getDecompressDir ()
File getDecompressDir (File parentDir)
getDecompressFiles ()
File getFile (File parentDir)
String getName ()
String getUrl ()
boolean mountZip ()
JSONObject toJson ()

Metodi pubblici

daJson

public static TestResource fromJson (JSONObject json)

Parametri
json JSONObject

ritorna
TestResource

fromJsonArray

public static  fromJsonArray (JSONArray jsonArray)

Parametri
jsonArray JSONArray

ritorna

Lancia
JSONException

getDecompress

public boolean getDecompress ()

ritorna
boolean

getDecompressDir

public String getDecompressDir ()

ritorna
String

getDecompressDir

public File getDecompressDir (File parentDir)

Parametri
parentDir File

ritorna
File

getDecompressFiles

public  getDecompressFiles ()

ritorna

prendi il file

public File getFile (File parentDir)

Parametri
parentDir File

ritorna
File

getNome

public String getName ()

ritorna
String

getUrl

public String getUrl ()

ritorna
String

mountZip

public boolean mountZip ()

ritorna
boolean

toJson

public JSONObject toJson ()

ritorna
JSONObject

Lancia
JSONException
,

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 fromJsonArray (JSONArray jsonArray)
boolean getDecompress ()
String getDecompressDir ()
File getDecompressDir (File parentDir)
getDecompressFiles ()
File getFile (File parentDir)
String getName ()
String getUrl ()
boolean mountZip ()
JSONObject toJson ()

Metodi pubblici

daJson

public static TestResource fromJson (JSONObject json)

Parametri
json JSONObject

ritorna
TestResource

fromJsonArray

public static  fromJsonArray (JSONArray jsonArray)

Parametri
jsonArray JSONArray

ritorna

Lancia
JSONException

getDecompress

public boolean getDecompress ()

ritorna
boolean

getDecompressDir

public String getDecompressDir ()

ritorna
String

getDecompressDir

public File getDecompressDir (File parentDir)

Parametri
parentDir File

ritorna
File

getDecompressFiles

public  getDecompressFiles ()

ritorna

prendi il file

public File getFile (File parentDir)

Parametri
parentDir File

ritorna
File

getNome

public String getName ()

ritorna
String

getUrl

public String getUrl ()

ritorna
String

mountZip

public boolean mountZip ()

ritorna
boolean

toJson

public JSONObject toJson ()

ritorna
JSONObject

Lancia
JSONException