Class ReporterMethodFactory
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.quantification.reporterion.ReporterMethodFactory
- All Implemented Interfaces:
Serializable
This factory imports reporter methods details from an XMl file.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Method Summary
Modifier and TypeMethodDescriptionstatic ReporterMethodFactoryConstructor for the factory.Returns the methods implemented in the factory.Returns the name of the methods present in the factory.String[]Returns the methods names as array.getReporterMethod(String methodName) Returns the reporter methods corresponding to the given name.voidimportMethods(File aFile) Imports the methods from an XML file.voidSave 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
-