|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.biojava3.core.sequence.features.AbstractFeature<S,C>
public abstract class AbstractFeature<S extends AbstractSequence<C>,C extends Compound>
A feature is currently any descriptive item that can be associated with a sequence position(s) A feature has a type and a source which is currently a string to allow flexibility for the user Ideally well defined features should have a class to describe attributes of that feature
| Field Summary | |
|---|---|
static java.util.Comparator<FeatureInterface<?,?>> |
LENGTH
Sort features by length. |
static java.util.Comparator<FeatureInterface<?,?>> |
LOCATION_LENGTH
Sort features by start position and then longest length. |
| Constructor Summary | |
|---|---|
AbstractFeature(java.lang.String type,
java.lang.String source)
A feature has a type and a source |
|
| Method Summary | |
|---|---|
java.util.List<FeatureInterface<S,C>> |
getChildrenFeatures()
Get the children features |
java.lang.String |
getDescription()
Get the description that can be used to describe the feature |
SequenceLocation<S,C> |
getLocations()
A feature could be a single sequence position like a mutation or a post translational modification of an amino acid. |
FeatureInterface<S,C> |
getParentFeature()
Get the parent Feature |
java.lang.String |
getShortDescription()
Get the short description that can be used to describe the feature |
java.lang.String |
getSource()
The feature source |
java.lang.String |
getType()
The feature type |
java.lang.Object |
getUserObject()
|
void |
setChildrenFeatures(java.util.List<FeatureInterface<S,C>> features)
Set the children features |
void |
setDescription(java.lang.String description)
Set the description that can be used to describe the feature |
void |
setLocation(SequenceLocation<S,C> loc)
A feature could be a single sequence position like a mutation or a post translational modification of an amino acid. |
void |
setParentFeature(FeatureInterface<S,C> feature)
A feature can be the child or contained by a parent feature. |
void |
setShortDescription(java.lang.String shortDescription)
Set the short description that can be used to describe the feature |
void |
setSource(java.lang.String source)
Set the feature source |
void |
setType(java.lang.String type)
Set the feature type |
void |
setUserObject(java.lang.Object userObject)
Allow the user to associate an object with the feature. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.Comparator<FeatureInterface<?,?>> LOCATION_LENGTH
public static final java.util.Comparator<FeatureInterface<?,?>> LENGTH
| Constructor Detail |
|---|
public AbstractFeature(java.lang.String type,
java.lang.String source)
type - source - | Method Detail |
|---|
public SequenceLocation<S,C> getLocations()
getLocations in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>public void setLocation(SequenceLocation<S,C> loc)
setLocation in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>loc - public java.lang.String getType()
getType in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>public void setType(java.lang.String type)
setType in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>type - public java.lang.String getSource()
getSource in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>public void setSource(java.lang.String source)
setSource in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>source - public void setParentFeature(FeatureInterface<S,C> feature)
setParentFeature in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>feature - public FeatureInterface<S,C> getParentFeature()
getParentFeature in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>public java.util.List<FeatureInterface<S,C>> getChildrenFeatures()
getChildrenFeatures in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>public void setChildrenFeatures(java.util.List<FeatureInterface<S,C>> features)
setChildrenFeatures in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>features - public java.lang.String getDescription()
FeatureInterface
getDescription in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>public void setDescription(java.lang.String description)
FeatureInterface
setDescription in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>description - the description to setpublic java.lang.String getShortDescription()
FeatureInterface
getShortDescription in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>public void setShortDescription(java.lang.String shortDescription)
FeatureInterface
setShortDescription in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>shortDescription - the shortDescription to setpublic java.lang.Object getUserObject()
getUserObject in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>public void setUserObject(java.lang.Object userObject)
setUserObject in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>userObject - the userObject to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||