|
||||||||||
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 java.lang.String |
extension
The extension to use when saving objects. |
static java.lang.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. |
java.util.HashMap<java.lang.String,Contact> |
getContacts()
Returns the contacts. |
static PrideObjectsFactory |
getInstance()
Method returning the instance of the factory. |
java.util.HashMap<java.lang.String,Instrument> |
getInstruments()
Returns the instruments. |
java.util.HashMap<java.lang.String,Protocol> |
getProtocols()
Returns the protocols. |
PtmToPrideMap |
getPtmToPrideMap()
Returns the utilities ptm to pride map. |
java.util.HashMap<java.lang.String,Reference> |
getReferences()
Returns the references. |
java.util.HashMap<java.lang.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 java.lang.String prideFolder
public static final java.lang.String extension
Method Detail |
---|
public static PrideObjectsFactory getInstance() throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
java.io.FileNotFoundException
- exception thrown whenever the file was not
found
java.io.IOException
- exception thrown whenever an error occurred while
writing the file
java.lang.ClassNotFoundException
- exception thrown whenever an error
occurred while serializing the filepublic void addContact(Contact contact) throws java.io.IOException
contact
- the contact to add
java.io.IOException
- exception thrown whenever an error occurred while
savingpublic void addProtocol(Protocol protocol) throws java.io.IOException
protocol
- the protocol to add
java.io.IOException
- exception thrown whenever an error occurred while
savingpublic void addInstrument(Instrument instrument) throws java.io.IOException
instrument
- the instrument to add
java.io.IOException
- exception thrown whenever an error occurred while
savingpublic void addReference(Reference reference) throws java.io.IOException
reference
- the reference to add
java.io.IOException
- exception thrown whenever an error occurred while
savingpublic void addSample(Sample sample) throws java.io.IOException
sample
- the sample to add
java.io.IOException
- exception thrown whenever an error occurred while
savingpublic void setPtmToPrideMap(PtmToPrideMap ptmToPrideMap) throws java.io.FileNotFoundException, java.io.IOException
ptmToPrideMap
- a new ptm to pride map
java.io.FileNotFoundException
java.io.IOException
public java.util.HashMap<java.lang.String,Contact> getContacts()
public java.util.HashMap<java.lang.String,Instrument> getInstruments()
public java.util.HashMap<java.lang.String,Protocol> getProtocols()
public PtmToPrideMap getPtmToPrideMap()
public java.util.HashMap<java.lang.String,Reference> getReferences()
public java.util.HashMap<java.lang.String,Sample> getSamples()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |