public static class SoftMaskedAlphabet.MaskingDetector.DefaultMaskingDetector extends Object implements SoftMaskedAlphabet.MaskingDetector
SoftMaskedAlphabet.MaskingDetector.DefaultMaskingDetectorDEFAULT| Constructor and Description |
|---|
SoftMaskedAlphabet.MaskingDetector.DefaultMaskingDetector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMasked(String token)
Default Behaivour is that if the whole token is lower case it is
masked.
|
String |
mask(String token)
Masks a token by making it lowercase
|
String |
unmask(String token)
Un-masks the token by making it upper case.
|
public SoftMaskedAlphabet.MaskingDetector.DefaultMaskingDetector()
public boolean isMasked(String token)
isMasked in interface SoftMaskedAlphabet.MaskingDetectortoken - the String to check for maskingpublic String mask(String token)
mask in interface SoftMaskedAlphabet.MaskingDetectortoken - the String to maskStringpublic String unmask(String token)
unmask in interface SoftMaskedAlphabet.MaskingDetectortoken - the String to unmaskStringCopyright © 2014 BioJava. All rights reserved.