public static class SoftMaskedAlphabet.MaskingDetector.DefaultMaskingDetector extends Object implements SoftMaskedAlphabet.MaskingDetector
SoftMaskedAlphabet.MaskingDetector.DefaultMaskingDetector
DEFAULT
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.MaskingDetector
token
- the String
to check for maskingpublic String mask(String token)
mask
in interface SoftMaskedAlphabet.MaskingDetector
token
- the String
to maskString
public String unmask(String token)
unmask
in interface SoftMaskedAlphabet.MaskingDetector
token
- the String
to unmaskString
Copyright © 2014 BioJava. All rights reserved.