org.biojava.bio.seq.impl
Class SimpleStrandedFeature
java.lang.Object
org.biojava.utils.AbstractChangeable
org.biojava.bio.seq.impl.SimpleFeature
org.biojava.bio.seq.impl.SimpleStrandedFeature
- All Implemented Interfaces:
- Annotatable, Changeable, Feature, FeatureHolder, RealizingFeatureHolder, java.io.Serializable, StrandedFeature
- Direct Known Subclasses:
- SimpleFramedFeature, SimpleHomologyFeature, SimpleRemoteFeature, SimpleRestrictionSite, SimpleSimilarityPairFeature
- public class SimpleStrandedFeature
- extends SimpleFeature
- implements StrandedFeature
A no-frills implementation of StrandedFeature.
- Author:
- Matthew Pocock, Thomas Down
- See Also:
- Serialized Form
Methods inherited from class org.biojava.bio.seq.impl.SimpleFeature |
containsFeature, countFeatures, createFeature, equals, featureHolderAllocated, features, fillTemplate, filter, filter, getAnnotation, getChangeSupport, getFeatureHolder, getLocation, getParent, getSchema, getSequence, getSource, getType, hashCode, realizeFeature, removeFeature, setLocation, setSource, setType |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SimpleStrandedFeature
public SimpleStrandedFeature(Sequence sourceSeq,
FeatureHolder parent,
StrandedFeature.Template template)
throws java.lang.IllegalArgumentException
getStrand
public StrandedFeature.Strand getStrand()
- Description copied from interface:
StrandedFeature
- Retrieve the strand that this feature lies upon.
This will be one of StrandedFeature.POSITIVE or NEGATIVE.
- Specified by:
getStrand
in interface StrandedFeature
- Returns:
- one of the Strand constants
getSymbols
public SymbolList getSymbols()
- Description copied from interface:
StrandedFeature
- Return a list of symbols that are contained in this feature.
The symbols may not be contiguous in the original sequence, but they
will be concatenated together in the resulting SymbolList.
The order of the Symbols within the resulting symbol list will be
according to the concept of ordering within the location object.
If the feature is on the negative strand then the SymbolList will be
reverse-complemented as appropriate.
- Specified by:
getSymbols
in interface StrandedFeature
- Overrides:
getSymbols
in class SimpleFeature
makeTemplate
public Feature.Template makeTemplate()
- Description copied from interface:
Feature
- Create a new Template that could be used to generate a feature identical
to this one. The fields of the template can be edited without changing
the feature.
- Specified by:
makeTemplate
in interface Feature
- Overrides:
makeTemplate
in class SimpleFeature
fillTemplate
protected void fillTemplate(StrandedFeature.Template ft)
toString
public java.lang.String toString()
- Overrides:
toString
in class SimpleFeature