public class PrideObjectsFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
extension
The extension to use when saving objects.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static String |
getPrideFolder()
Returns the folder where pride annotation information should be saved.
|
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.
|
static void |
setPrideFolder(String prideFolder)
Sets the folder where pride annotation information should be saved.
|
void |
setPtmToPrideMap(PtmToPrideMap ptmToPrideMap)
Sets a new PTM to PRIDE map.
|
public static final String extension
public static PrideObjectsFactory getInstance() throws FileNotFoundException, IOException, ClassNotFoundException
FileNotFoundException
- exception thrown whenever the file was not
foundIOException
- exception thrown whenever an error occurred while
writing the fileClassNotFoundException
- exception thrown whenever an error
occurred while serializing the filepublic void addContactGroup(ContactGroup contactGroup) throws IOException
contactGroup
- the contact group to addIOException
- 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 addIOException
- 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 addIOException
- 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 addIOException
- 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 addIOException
- 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 mapFileNotFoundException
- if a FileNotFoundException occursIOException
- if an IOException occurspublic HashMap<String,ContactGroup> getContactGroups()
public HashMap<String,Instrument> getInstruments()
public HashMap<String,Protocol> getProtocols()
public PtmToPrideMap getPtmToPrideMap()
public HashMap<String,ReferenceGroup> getReferenceGroups()
public static String getPrideFolder()
public static void setPrideFolder(String prideFolder)
prideFolder
- the folder where pride annotation information should
be savedCopyright © 2016. All rights reserved.