public class ModificationFactory extends Object
Modifier and Type | Method and Description |
---|---|
static String[] |
getAllModificationTitles()
This method returns all modification titles known to the Factory.
|
static Modification |
getModification(String aTitle,
int aLocation)
This method will return a Modification instance from a title.
|
static Modification |
getModification(String aCode,
String aResidue,
int aLocation)
This method takes a code and a residue (the residue for the N-terminus is NTERMINUS and for the
C-terminus CTERMINUS!) and converts this into a Modification instance if possible.
|
static String |
modificationConversionToString()
Returns a String representation of the modification title to code mappings.
|
static String |
modificationsToString()
Returns a String representation of the modifications.
|
static void |
reLoadAllData()
This method can be used to refresh all data from the data store indicated in the ModificationFactory.properties
file.
|
public static Modification getModification(String aTitle, int aLocation)
aTitle
- String with the title for a modification.aLocation
- int with the location for the modification.public static Modification getModification(String aCode, String aResidue, int aLocation)
aCode
- String with the code for the modificationaResidue
- String with the residue carrying the modification (the residue for the N-terminus
is defined in the constant NTERMINUS and for the C-terminus in the constant CTERMINUS!).aLocation
- int with the location for the modification.public static String modificationsToString()
public static String modificationConversionToString()
public static void reLoadAllData()
public static String[] getAllModificationTitles()
Copyright © 2016. All rights reserved.