com.compomics.util.experiment.quantification.reporterion
Class ReporterMethodFactory

java.lang.Object
  extended by com.compomics.util.experiment.personalization.ExperimentObject
      extended by com.compomics.util.experiment.quantification.reporterion.ReporterMethodFactory
All Implemented Interfaces:
Serializable, Cloneable

public class ReporterMethodFactory
extends ExperimentObject

This factory imports reporter methods details from an xml file.

Author:
Marc Vaudel
See Also:
Serialized Form

Method Summary
static ReporterMethodFactory getInstance()
          Constructor for the factory.
 ArrayList<ReporterMethod> getMethods()
          Returns the methods implemented in the factory.
 String[] getMethodsNames()
          returns the name of the methods present in the factory
 void importMethods(File aFile)
          Imports the methods from an xml file
 void saveFile(File aFile)
           
 
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, getParameterKey, getUrParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ReporterMethodFactory getInstance()
Constructor for the factory.

Returns:

getMethods

public ArrayList<ReporterMethod> getMethods()
Returns the methods implemented in the factory.

Returns:
the methods implemented in the factory

getMethodsNames

public String[] getMethodsNames()
returns the name of the methods present in the factory

Returns:

saveFile

public void saveFile(File aFile)
Parameters:
aFile -

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


Copyright © 2012. All Rights Reserved.