RessourceTest

public class TestResource
extends Object

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


Une classe pour modéliser un message TestResource renvoyé par l'API TFC.

Résumé

Méthodes publiques

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

Méthodes publiques

deJson

public static TestResource fromJson (JSONObject json)

Paramètres
json JSONObject

Retour
TestResource

fromJsonArray

public static  fromJsonArray (JSONArray jsonArray)

Paramètres
jsonArray JSONArray

Retour

Lance
JSONException

getDecompress

public boolean getDecompress ()

Retour
boolean

getDecompressDir

public String getDecompressDir ()

Retour
String

getDecompressDir

public File getDecompressDir (File parentDir)

Paramètres
parentDir File

Retour
File

getDecompressFiles

public  getDecompressFiles ()

Retour

obtenirFichier

public File getFile (File parentDir)

Paramètres
parentDir File

Retour
File

obtenirNom

public String getName ()

Retour
String

obtenirUrl

public String getUrl ()

Retour
String

montageZip

public boolean mountZip ()

Retour
boolean

àJson

public JSONObject toJson ()

Retour
JSONObject

Lance
JSONException