|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.intenz.webapp.IntEnzUtilities
public class IntEnzUtilities
Provides utility classes, which are used throughout the whole project.
| Constructor Summary | |
|---|---|
IntEnzUtilities()
|
|
| Method Summary | |
|---|---|
static String |
cleanInternalLinks(String string2check,
boolean uppercaseFirstLetter)
Deprecated. use cleanLinks(String) and firstLetterToUppercase(String) |
static String |
cleanLinks(String s)
|
static String |
firstLetterToUppercase(String text)
Deprecated. use JSTL's fn:toUpperCase and fn:substring instead |
static String |
getLinkedFlatFile(String flatFile)
Create hyperlinks for all cross-references (xrefs) in a flat file. |
static String |
link2carb(String s)
Generates links to IUPAC carbohydrate nomenclature pages wherever it finds a 2-Carb- prefixed word. |
static String |
linkEcNumber(String ecString,
boolean uppercaseFirstLetter)
Deprecated. use linkEcNumbers(String) instead and - if needed -
firstLetterToUppercase(String) |
static String |
linkEcNumbers(String ecString)
|
static String |
linkMerops(String s)
Generates a hypertext link to MEROPS. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntEnzUtilities()
| Method Detail |
|---|
public static String linkEcNumber(String ecString,
boolean uppercaseFirstLetter)
linkEcNumbers(String) instead and - if needed -
firstLetterToUppercase(String)
ecString - The String to be formatted.uppercaseFirstLetter - whether to uppercase the first letter or not
public static String linkEcNumbers(String ecString)
public static String link2carb(String s)
2-Carb- prefixed word.
s -
public static String linkMerops(String s)
family or families
if the following word looks like a MEROPS identifier.
s -
public static String cleanInternalLinks(String string2check,
boolean uppercaseFirstLetter)
cleanLinks(String) and firstLetterToUppercase(String)
string2Check - uppercaseFirstLetter - whether to uppercase the first letter or not
public static String cleanLinks(String s)
public static String firstLetterToUppercase(String text)
text - to be checked.
public static String getLinkedFlatFile(String flatFile)
flatFile - The flat file string.
NullPointerException - if flatFile is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||