|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.pride.PrideObjectsFactory
public class PrideObjectsFactory
This factory manages the pride objects saved in the user folder.
Field Summary | |
---|---|
static String |
extension
The extension to use when saving objects. |
static String |
prideFolder
The folder where pride related infos are stored. |
Method Summary | |
---|---|
void |
addContact(Contact contact)
Adds a contact in the pride objects. |
void |
addInstrument(Instrument instrument)
Adds a instrument in the pride objects. |
void |
addProtocol(Protocol protocol)
Adds a protocol in the pride objects. |
void |
addReference(Reference reference)
Adds a reference in the pride objects. |
void |
addSample(Sample sample)
Adds a sample in the pride objects. |
HashMap<String,Contact> |
getContacts()
Returns the contacts. |
static PrideObjectsFactory |
getInstance()
Method returning the instance of the factory. |
HashMap<String,Instrument> |
getInstruments()
Returns the instruments. |
HashMap<String,Protocol> |
getProtocols()
Returns the protocols. |
PtmToPrideMap |
getPtmToPrideMap()
Returns the utilities ptm to pride map. |
HashMap<String,Reference> |
getReferences()
Returns the references. |
HashMap<String,Sample> |
getSamples()
Returns the samples. |
void |
setPtmToPrideMap(PtmToPrideMap ptmToPrideMap)
Sets a new ptm to pride map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String prideFolder
public static final String extension
Method Detail |
---|
public static PrideObjectsFactory getInstance() throws FileNotFoundException, IOException, ClassNotFoundException
FileNotFoundException
- exception thrown whenever the file was not
found
IOException
- exception thrown whenever an error occurred while
writing the file
ClassNotFoundException
- exception thrown whenever an error
occurred while serializing the filepublic void addContact(Contact contact) throws IOException
contact
- the contact to add
IOException
- exception thrown whenever an error occurred while
savingpublic void addProtocol(Protocol protocol) throws IOException
protocol
- the protocol to add
IOException
- exception thrown whenever an error occurred while
savingpublic void addInstrument(Instrument instrument) throws IOException
instrument
- the instrument to add
IOException
- exception thrown whenever an error occurred while
savingpublic void addReference(Reference reference) throws IOException
reference
- the reference to add
IOException
- exception thrown whenever an error occurred while
savingpublic void addSample(Sample sample) throws IOException
sample
- the sample to add
IOException
- exception thrown whenever an error occurred while
savingpublic void setPtmToPrideMap(PtmToPrideMap ptmToPrideMap) throws FileNotFoundException, IOException
ptmToPrideMap
- a new ptm to pride map
FileNotFoundException
IOException
public HashMap<String,Contact> getContacts()
public HashMap<String,Instrument> getInstruments()
public HashMap<String,Protocol> getProtocols()
public PtmToPrideMap getPtmToPrideMap()
public HashMap<String,Reference> getReferences()
public HashMap<String,Sample> getSamples()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |