Class ReporterMethodFactory
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.quantification.reporterion.ReporterMethodFactory
- All Implemented Interfaces:
Serializable
public class ReporterMethodFactory extends ExperimentObject
This factory imports reporter methods details from an XMl file.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
- Serialized Form
-
Field Summary
-
Method Summary
Modifier and Type Method 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.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Method Details
-
getInstance
Constructor for the factory.- Returns:
- the reporter method factory
-
getMethods
Returns the methods implemented in the factory.- Returns:
- the methods implemented in the factory
-
getMethodsNames
Returns the name of the methods present in the factory.- Returns:
- the name of the methods present in the factory
-
getMethodsNamesAsArray
Returns the methods names as array.- Returns:
- the methods names
-
getReporterMethod
Returns the reporter methods corresponding to the given name.- Parameters:
methodName
- the name of the method- Returns:
- the reporter methods
-
saveFile
Save to file.- Parameters:
aFile
- the file to save to- Throws:
IOException
- thrown whenever a problem occurred while writing the file
-
importMethods
Imports the methods from an XML file.- Parameters:
aFile
- the XML file- Throws:
IOException
- exception thrown whenever an error occurred while reading the fileorg.xmlpull.v1.XmlPullParserException
- exception thrown whenever an error occurred while parsing the XML file
-