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
  • Method Details

    • getInstance

      public static ReporterMethodFactory getInstance()
      Constructor for the factory.
      Returns:
      the reporter method factory
    • getMethods

      public HashMap<String,​ReporterMethod> getMethods()
      Returns the methods implemented in the factory.
      Returns:
      the methods implemented in the factory
    • getMethodsNames

      public ArrayList<String> getMethodsNames()
      Returns the name of the methods present in the factory.
      Returns:
      the name of the methods present in the factory
    • getMethodsNamesAsArray

      public String[] getMethodsNamesAsArray()
      Returns the methods names as array.
      Returns:
      the methods names
    • getReporterMethod

      public ReporterMethod getReporterMethod​(String methodName)
      Returns the reporter methods corresponding to the given name.
      Parameters:
      methodName - the name of the method
      Returns:
      the reporter methods
    • saveFile

      public void saveFile​(File aFile) throws IOException
      Save to file.
      Parameters:
      aFile - the file to save to
      Throws:
      IOException - thrown whenever a problem occurred while writing the file
    • importMethods

      public void importMethods​(File aFile) throws IOException, org.xmlpull.v1.XmlPullParserException
      Imports the methods from an XML file.
      Parameters:
      aFile - the XML file
      Throws:
      IOException - exception thrown whenever an error occurred while reading the file
      org.xmlpull.v1.XmlPullParserException - exception thrown whenever an error occurred while parsing the XML file