public class EnzymeFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addEnzyme(Enzyme enzyme)
Adds an enzyme in the factory.
|
boolean |
enzymeLoaded(java.lang.String enzyme)
Indicates whether an enzyme is loaded in the factory.
|
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.
|
Enzyme |
getUtilitiesEnzyme(java.lang.String prideEnzymeName)
Tries to map the enzyme name given in the PRIDE file a utilities/OMSSA
enzyme.
|
void |
importEnzymes(java.io.File enzymeFile)
Import enzymes.
|
public static EnzymeFactory getInstance()
public java.util.ArrayList<Enzyme> getEnzymes()
public Enzyme getEnzyme(java.lang.String enzymeName)
enzymeName
- the name of the desired enzymepublic void addEnzyme(Enzyme enzyme)
enzyme
- the new enzyme to addpublic boolean enzymeLoaded(java.lang.String enzyme)
enzyme
- the name of the enzymepublic void importEnzymes(java.io.File enzymeFile) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
enzymeFile
- xml file containing the enzymesorg.xmlpull.v1.XmlPullParserException
- when the parser failedjava.io.IOException
- when reading the corresponding file failedpublic Enzyme getUtilitiesEnzyme(java.lang.String prideEnzymeName)
prideEnzymeName
- the PRIDE enzyme nameCopyright © 2013. All Rights Reserved.