|
||||||||||
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 info is stored. |
Method Summary | |
---|---|
void |
addContactGroup(ContactGroup contactGroup)
Adds a contact group 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 |
addReferenceGroup(ReferenceGroup referenceGroup)
Adds a reference group in the PRIDE objects. |
void |
addSample(Sample sample)
Adds a sample in the PRIDE objects. |
void |
deleteContactGroup(ContactGroup contactGroup)
Delete the given contact group. |
void |
deleteInstrument(Instrument instrument)
Delete the given instrument. |
void |
deleteProtocol(Protocol protocol)
Delete the given protocol. |
void |
deleteReferenceGroup(ReferenceGroup referenceGroup)
Delete the given reference group. |
void |
deleteSample(Sample sample)
Delete the given sample. |
HashMap<String,ContactGroup> |
getContactGroups()
Returns the contact groups. |
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,ReferenceGroup> |
getReferenceGroups()
Returns the reference groups. |
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 addContactGroup(ContactGroup contactGroup) throws IOException
contactGroup
- the contact group to add
IOException
- exception thrown whenever an error occurred while
savingpublic void deleteContactGroup(ContactGroup contactGroup)
contactGroup
- the group to deletepublic void addProtocol(Protocol protocol) throws IOException
protocol
- the protocol to add
IOException
- exception thrown whenever an error occurred while
savingpublic void deleteProtocol(Protocol protocol)
protocol
- the protocol to deletepublic void addInstrument(Instrument instrument) throws IOException
instrument
- the instrument to add
IOException
- exception thrown whenever an error occurred while
savingpublic void deleteInstrument(Instrument instrument)
instrument
- the instrument to deletepublic void addReferenceGroup(ReferenceGroup referenceGroup) throws IOException
referenceGroup
- the reference group to add
IOException
- exception thrown whenever an error occurred while
savingpublic void deleteReferenceGroup(ReferenceGroup referenceGroup)
referenceGroup
- the reference group to deletepublic void addSample(Sample sample) throws IOException
sample
- the sample to add
IOException
- exception thrown whenever an error occurred while
savingpublic void deleteSample(Sample sample)
sample
- the sample to deletepublic void setPtmToPrideMap(PtmToPrideMap ptmToPrideMap) throws FileNotFoundException, IOException
ptmToPrideMap
- a new ptm to pride map
FileNotFoundException
IOException
public HashMap<String,ContactGroup> getContactGroups()
public HashMap<String,Instrument> getInstruments()
public HashMap<String,Protocol> getProtocols()
public PtmToPrideMap getPtmToPrideMap()
public HashMap<String,ReferenceGroup> getReferenceGroups()
public HashMap<String,Sample> getSamples()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |