Package org.biojava.bio.symbol
Interface SoftMaskedAlphabet.MaskingDetector
-
- All Known Implementing Classes:
SoftMaskedAlphabet.MaskingDetector.DefaultMaskingDetector
- Enclosing class:
- SoftMaskedAlphabet
public static interface SoftMaskedAlphabet.MaskingDetectorImplementations will define how soft masking looks. TheDEFAULTimplementation considers softmasking to be represented by lower case characters.Copyright (c) 2004 Novartis Institute for Tropical Diseases
- Version:
- 1.0
- Author:
- Mark Schreiber
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSoftMaskedAlphabet.MaskingDetector.DefaultMaskingDetector
-
Field Summary
Fields Modifier and Type Field Description static SoftMaskedAlphabet.MaskingDetectorDEFAULT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisMasked(java.lang.String token)java.lang.Stringmask(java.lang.String token)Present the token for aSymbolas it would appear if maskedjava.lang.Stringunmask(java.lang.String token)Present the token for aSymbolas it would appear if it wasn't softmasked
-
-
-
Field Detail
-
DEFAULT
static final SoftMaskedAlphabet.MaskingDetector DEFAULT
-
-
Method Detail
-
isMasked
boolean isMasked(java.lang.String token)
-
mask
java.lang.String mask(java.lang.String token)
Present the token for aSymbolas it would appear if masked- Parameters:
token- theStringto mask.- Returns:
- the masked token
-
unmask
java.lang.String unmask(java.lang.String token)
Present the token for aSymbolas it would appear if it wasn't softmasked- Parameters:
token- theStringto un-mask.- Returns:
- the un-masked token
-
-