public class SimpleStrandedFeature extends SimpleFeature implements StrandedFeature
StrandedFeature.Strand, StrandedFeature.TemplateFeature.ByLocationComparatorFeatureHolder.EmptyFeatureHolderAnnotatable.AnnotationForwarderNEGATIVE, POSITIVE, STRAND, UNKNOWNbyLocationOrder, LOCATION, PROPERTY_DATA_KEY, SOURCE, SOURCETERM, TYPE, TYPETERMEMPTY_FEATURE_HOLDER, FEATURES, SCHEMAANNOTATION| Constructor and Description |
|---|
SimpleStrandedFeature(Sequence sourceSeq,
FeatureHolder parent,
StrandedFeature.Template template) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fillTemplate(StrandedFeature.Template ft) |
StrandedFeature.Strand |
getStrand()
Retrieve the strand that this feature lies upon.
|
SymbolList |
getSymbols()
Return a list of symbols that are contained in this feature.
|
Feature.Template |
makeTemplate()
Create a new Template that could be used to generate a feature identical
to this one.
|
void |
setStrand(StrandedFeature.Strand strand)
Set the strand that this feature lies upon.
|
String |
toString() |
containsFeature, countFeatures, createFeature, equals, featureHolderAllocated, features, fillTemplate, filter, filter, getAnnotation, getChangeSupport, getFeatureHolder, getLocation, getParent, getSchema, getSequence, getSource, getSourceTerm, getType, getTypeTerm, hashCode, realizeFeature, removeFeature, setLocation, setSource, setSourceTerm, setType, setTypeTermaddChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitfeatures, getLocation, getParent, getSequence, getSource, getSourceTerm, getType, getTypeTerm, setLocation, setSource, setSourceTerm, setType, setTypeTermcontainsFeature, countFeatures, createFeature, filter, filter, getSchema, removeFeaturegetAnnotationaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic SimpleStrandedFeature(Sequence sourceSeq, FeatureHolder parent, StrandedFeature.Template template) throws IllegalArgumentException
IllegalArgumentExceptionpublic StrandedFeature.Strand getStrand()
StrandedFeatureThis will be one of StrandedFeature.POSITIVE or NEGATIVE.
getStrand in interface StrandedFeaturepublic SymbolList getSymbols()
FeatureThe 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 location is modified then this does not modify any SymbolList produced by earlier invocations of this method.
getSymbols in interface FeaturegetSymbols in interface StrandedFeaturegetSymbols in class SimpleFeaturepublic void setStrand(StrandedFeature.Strand strand) throws ChangeVetoException
StrandedFeatureThis will be one of StrandedFeature.POSITIVE or NEGATIVE.
setStrand in interface StrandedFeaturestrand - a Strand.ChangeVetoException - if the strand may not be
changed.public Feature.Template makeTemplate()
FeaturemakeTemplate in interface FeaturemakeTemplate in class SimpleFeatureprotected void fillTemplate(StrandedFeature.Template ft)
public String toString()
toString in class SimpleFeatureCopyright © 2014 BioJava. All rights reserved.