public class ReporterMethodFactory extends ExperimentObject
| Modifier and Type | Method and Description |
|---|---|
static ReporterMethodFactory |
getInstance()
Constructor for the factory.
|
HashMap<String,ReporterMethod> |
getMethods()
Returns the methods implemented in the factory.
|
ArrayList<String> |
getMethodsNames()
Returns the name of the methods present in the factory.
|
String[] |
getMethodsNamesAsArray()
Returns the methods names as array.
|
ReporterMethod |
getReporterMethod(String methodName)
Returns the reporter methods corresponding to the given name.
|
void |
importMethods(File aFile)
Imports the methods from an XML file.
|
void |
saveFile(File aFile)
Save to file.
|
addUrParam, getParameterKey, getUrParampublic static ReporterMethodFactory getInstance()
public HashMap<String,ReporterMethod> getMethods()
public ArrayList<String> getMethodsNames()
public String[] getMethodsNamesAsArray()
public ReporterMethod getReporterMethod(String methodName)
methodName - the name of the methodpublic void saveFile(File aFile) throws IOException
aFile - the file to save toIOException - thrown whenever a problem occurred while writing the
filepublic void importMethods(File aFile) throws IOException, org.xmlpull.v1.XmlPullParserException
aFile - the XML fileIOException - exception thrown whenever an error occurred while
reading the fileorg.xmlpull.v1.XmlPullParserException - exception thrown whenever an error
occurred while parsing the XML fileCopyright © 2016. All rights reserved.