Package 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:
Serializable,Annotatable,Feature,FeatureHolder,RealizingFeatureHolder,StrandedFeature,Changeable
- Direct Known Subclasses:
SimpleFramedFeature,SimpleHomologyFeature,SimpleRemoteFeature,SimpleRestrictionSite,SimpleSimilarityPairFeature
A no-frills implementation of StrandedFeature.
- Author:
- Matthew Pocock, Thomas Down
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojava.bio.Annotatable
Annotatable.AnnotationForwarderNested classes/interfaces inherited from interface org.biojava.bio.seq.Feature
Feature.ByLocationComparator, Feature.TemplateNested classes/interfaces inherited from interface org.biojava.bio.seq.FeatureHolder
FeatureHolder.EmptyFeatureHolderNested classes/interfaces inherited from interface org.biojava.bio.seq.StrandedFeature
StrandedFeature.Strand, StrandedFeature.Template -
Field Summary
Fields inherited from interface org.biojava.bio.Annotatable
ANNOTATIONFields inherited from interface org.biojava.bio.seq.Feature
byLocationOrder, LOCATION, PROPERTY_DATA_KEY, SOURCE, SOURCETERM, TYPE, TYPETERMFields inherited from interface org.biojava.bio.seq.FeatureHolder
EMPTY_FEATURE_HOLDER, FEATURES, SCHEMAFields inherited from interface org.biojava.bio.seq.StrandedFeature
NEGATIVE, POSITIVE, STRAND, UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionSimpleStrandedFeature(Sequence sourceSeq, FeatureHolder parent, StrandedFeature.Template template) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidRetrieve the strand that this feature lies upon.Return a list of symbols that are contained in this feature.Create a new Template that could be used to generate a feature identical to this one.voidsetStrand(StrandedFeature.Strand strand) Set the strand that this feature lies upon.toString()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, getSourceTerm, getType, getTypeTerm, hashCode, realizeFeature, removeFeature, setLocation, setSource, setSourceTerm, setType, setTypeTermMethods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.biojava.bio.Annotatable
getAnnotationMethods inherited from interface org.biojava.utils.Changeable
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerMethods inherited from interface org.biojava.bio.seq.Feature
features, getLocation, getParent, getSequence, getSource, getSourceTerm, getType, getTypeTerm, setLocation, setSource, setSourceTerm, setType, setTypeTermMethods inherited from interface org.biojava.bio.seq.FeatureHolder
containsFeature, countFeatures, createFeature, filter, filter, getSchema, removeFeature
-
Constructor Details
-
SimpleStrandedFeature
public SimpleStrandedFeature(Sequence sourceSeq, FeatureHolder parent, StrandedFeature.Template template) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
getStrand
Description copied from interface:StrandedFeatureRetrieve the strand that this feature lies upon.This will be one of StrandedFeature.POSITIVE or NEGATIVE.
- Specified by:
getStrandin interfaceStrandedFeature- Returns:
- one of the Strand constants
-
getSymbols
Description copied from interface:FeatureReturn 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 location is modified then this does not modify any SymbolList produced by earlier invocations of this method.
- Specified by:
getSymbolsin interfaceFeature- Specified by:
getSymbolsin interfaceStrandedFeature- Overrides:
getSymbolsin classSimpleFeature- Returns:
- a SymbolList containing each symbol of the parent sequence contained within this feature in the order they appear in the parent
-
setStrand
Description copied from interface:StrandedFeatureSet the strand that this feature lies upon.This will be one of StrandedFeature.POSITIVE or NEGATIVE.
- Specified by:
setStrandin interfaceStrandedFeature- Parameters:
strand- aStrand.- Throws:
ChangeVetoException- if the strand may not be changed.
-
makeTemplate
Description copied from interface:FeatureCreate 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:
makeTemplatein interfaceFeature- Overrides:
makeTemplatein classSimpleFeature- Returns:
- a new Template that would make a feature like this one
-
fillTemplate
-
toString
- Overrides:
toStringin classSimpleFeature
-