com.compomics.util.experiment.biology
Class EnzymeFactory

java.lang.Object
  extended by com.compomics.util.experiment.biology.EnzymeFactory

public class EnzymeFactory
extends java.lang.Object

This factory will provide the implemented enzymes. Created by IntelliJ IDEA. User: Marc Date: Aug 23, 2010 Time: 7:30:55 PM


Method Summary
 Enzyme getEnzyme(java.lang.String enzymeName)
          Returns the enzyme corresponding to the given name
 java.util.ArrayList<Enzyme> getEnzymes()
          Get the imported enzymes
static EnzymeFactory getInstance()
          Static method to get an instance of the factory
 void importEnzymes(java.io.File enzymeFile)
          Import enzymes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static EnzymeFactory getInstance()
Static method to get an instance of the factory

Returns:
the factory instance

getEnzymes

public java.util.ArrayList<Enzyme> getEnzymes()
Get the imported enzymes

Returns:
The enzymes as ArrayList

getEnzyme

public Enzyme getEnzyme(java.lang.String enzymeName)
Returns the enzyme corresponding to the given name

Parameters:
enzymeName - the name of the desired enzyme
Returns:
the corresponding enzyme

importEnzymes

public void importEnzymes(java.io.File enzymeFile)
                   throws org.xmlpull.v1.XmlPullParserException,
                          java.io.IOException
Import enzymes

Parameters:
enzymeFile - xml file containing the enzymes
Throws:
org.xmlpull.v1.XmlPullParserException - when the parser failed
java.io.IOException - when reading the corresponding file failed


Copyright © 2011. All Rights Reserved.