public class SimpleStrandedFeature extends SimpleFeature implements StrandedFeature
StrandedFeature.Strand, StrandedFeature.Template
Feature.ByLocationComparator
FeatureHolder.EmptyFeatureHolder
Annotatable.AnnotationForwarder
NEGATIVE, POSITIVE, STRAND, UNKNOWN
byLocationOrder, LOCATION, PROPERTY_DATA_KEY, SOURCE, SOURCETERM, TYPE, TYPETERM
EMPTY_FEATURE_HOLDER, FEATURES, SCHEMA
ANNOTATION
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, setTypeTerm
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
features, getLocation, getParent, getSequence, getSource, getSourceTerm, getType, getTypeTerm, setLocation, setSource, setSourceTerm, setType, setTypeTerm
containsFeature, countFeatures, createFeature, filter, filter, getSchema, removeFeature
getAnnotation
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public SimpleStrandedFeature(Sequence sourceSeq, FeatureHolder parent, StrandedFeature.Template template) throws IllegalArgumentException
IllegalArgumentException
public StrandedFeature.Strand getStrand()
StrandedFeature
This will be one of StrandedFeature.POSITIVE or NEGATIVE.
getStrand
in interface StrandedFeature
public SymbolList getSymbols()
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 location is modified then this does not modify any SymbolList produced by earlier invocations of this method.
getSymbols
in interface Feature
getSymbols
in interface StrandedFeature
getSymbols
in class SimpleFeature
public void setStrand(StrandedFeature.Strand strand) throws ChangeVetoException
StrandedFeature
This will be one of StrandedFeature.POSITIVE or NEGATIVE.
setStrand
in interface StrandedFeature
strand
- a Strand
.ChangeVetoException
- if the strand may not be
changed.public Feature.Template makeTemplate()
Feature
makeTemplate
in interface Feature
makeTemplate
in class SimpleFeature
protected void fillTemplate(StrandedFeature.Template ft)
public String toString()
toString
in class SimpleFeature
Copyright © 2014 BioJava. All rights reserved.