public class SimpleAtomicSymbol extends AbstractSymbol implements AtomicSymbol, java.io.Serializable
AlphabetManager.
This may be a useful base class for custom implementations.Annotatable.AnnotationForwarder| Modifier and Type | Field and Description |
|---|---|
protected Alphabet |
matches |
protected java.util.List |
symbols |
annotationForwarderANNOTATION| Modifier | Constructor and Description |
|---|---|
protected |
SimpleAtomicSymbol(Annotation annotation,
java.util.List syms) |
| Modifier and Type | Method and Description |
|---|---|
protected Alphabet |
createMatches() |
protected java.util.List |
createSymbols() |
Annotation |
getAnnotation()
Should return the associated annotation object.
|
Alphabet |
getMatches()
The alphabet containing the symbols matched by this ambiguity symbol.
|
java.lang.String |
getName()
The long name for the symbol.
|
java.util.List |
getSymbols()
The list of symbols that this symbol is composed from.
|
getChangeSupport, toStringaddChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSymbolsgetMatches, getNamegetAnnotationaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerprotected java.util.List symbols
protected Alphabet matches
protected SimpleAtomicSymbol(Annotation annotation, java.util.List syms) throws IllegalSymbolException
IllegalSymbolExceptionprotected Alphabet createMatches()
public final java.util.List getSymbols()
BasisSymbolThe list of symbols that this symbol is composed from.
In the usual case, this list will contain just this single symbol. In the case where a symbol represents an ordered combination of other symbols, the list will contain each of these BasisSymbols.
getSymbols in interface BasisSymbolprotected java.util.List createSymbols()
public Annotation getAnnotation()
AnnotatablegetAnnotation in interface Annotatablepublic Alphabet getMatches()
SymbolThis alphabet contains all of, and only, the symbols matched by this symbol. For example, the symbol representing the DNA ambiguity code for W would contain the symbol for A and T from the DNA alphabet.
getMatches in interface Symbol