Class FeatureDbReferenceInfo<S extends AbstractSequence<C>,C extends Compound>
- java.lang.Object
-
- org.biojava.nbio.core.sequence.features.Qualifier
-
- org.biojava.nbio.core.sequence.features.DBReferenceInfo
-
- org.biojava.nbio.core.sequence.features.FeatureDbReferenceInfo<S,C>
-
- Type Parameters:
S
-C
-
- All Implemented Interfaces:
FeatureInterface<S,C>
public class FeatureDbReferenceInfo<S extends AbstractSequence<C>,C extends Compound> extends DBReferenceInfo implements FeatureInterface<S,C>
It isDBReferenceInfo
which implementsFeatureInterface
. It allows to keep a dbReferenceInfo as a feature.- Author:
- Jacek Grzebyta, Paolo Pavan
-
-
Constructor Summary
Constructors Constructor Description FeatureDbReferenceInfo(String database, String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addQualifier(String key, Qualifier qualifier)
Add a qualifierList<FeatureInterface<S,C>>
getChildrenFeatures()
Get the features contained by this featureString
getDescription()
Get the description that can be used to describe the featureAbstractLocation
getLocations()
The location(s) of this feature where the location should contain a reference to parent and sequence etc.FeatureInterface<S,C>
getParentFeature()
Get the parent featureMap<String,List<Qualifier>>
getQualifiers()
Get the qualifiers for this featureString
getShortDescription()
Get the short description that can be used to describe the featureString
getSource()
The source of the feature.String
getType()
The type of the feature.Object
getUserObject()
void
setChildrenFeatures(List<FeatureInterface<S,C>> features)
Set the children featuresvoid
setDescription(String description)
Set the description that can be used to describe the featurevoid
setLocation(AbstractLocation loc)
The new location for this feature.void
setParentFeature(FeatureInterface<S,C> feature)
Set the parent featurevoid
setQualifiers(Map<String,List<Qualifier>> qualifiers)
Set the qualifiersvoid
setShortDescription(String shortDescription)
Set the short description that can be used to describe the featurevoid
setSource(String source)
Change the source of the FeatureInterface.void
setType(String type)
Change the type of this feature.void
setUserObject(Object userObject)
-
Methods inherited from class org.biojava.nbio.core.sequence.features.DBReferenceInfo
addProperty, getDatabase, getId, getProperties, setDatabase, setId, setProperties, toString
-
Methods inherited from class org.biojava.nbio.core.sequence.features.Qualifier
getName, getValue, needsQuotes, setName, setNeedsQuotes, setValue
-
-
-
-
Constructor Detail
-
FeatureDbReferenceInfo
public FeatureDbReferenceInfo(String database, String id)
-
-
Method Detail
-
getShortDescription
public String getShortDescription()
Description copied from interface:FeatureInterface
Get the short description that can be used to describe the feature- Specified by:
getShortDescription
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
- Returns:
-
setShortDescription
public void setShortDescription(String shortDescription)
Description copied from interface:FeatureInterface
Set the short description that can be used to describe the feature- Specified by:
setShortDescription
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
-
getDescription
public String getDescription()
Description copied from interface:FeatureInterface
Get the description that can be used to describe the feature- Specified by:
getDescription
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
- Returns:
-
setDescription
public void setDescription(String description)
Description copied from interface:FeatureInterface
Set the description that can be used to describe the feature- Specified by:
setDescription
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
-
getLocations
public AbstractLocation getLocations()
Description copied from interface:FeatureInterface
The location(s) of this feature where the location should contain a reference to parent and sequence etc.The location may be complicated, or simply a range. The annotation is assumed to apply to all the region contained within the location.
- Specified by:
getLocations
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
- Returns:
- a Location anchoring this feature
-
setLocation
public void setLocation(AbstractLocation loc)
Description copied from interface:FeatureInterface
The new location for this feature.The location may be complicated or simply a range. The annotation is assumed to apply to the entire region contained within the location. Any values returned from methods that rely on the old location must not be affected.
- Specified by:
setLocation
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
- Parameters:
loc
- the new Location for this feature
-
getType
public String getType()
Description copied from interface:FeatureInterface
The type of the feature.- Specified by:
getType
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
- Returns:
- the type of this sequence
-
setType
public void setType(String type)
Description copied from interface:FeatureInterface
Change the type of this feature.- Specified by:
setType
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
- Parameters:
type
- new type String
-
getSource
public String getSource()
Description copied from interface:FeatureInterface
The source of the feature. This may be a program or process.- Specified by:
getSource
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
- Returns:
- the source, or generator
-
setSource
public void setSource(String source)
Description copied from interface:FeatureInterface
Change the source of the FeatureInterface.- Specified by:
setSource
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
- Parameters:
source
- the new source String
-
setParentFeature
public void setParentFeature(FeatureInterface<S,C> feature)
Description copied from interface:FeatureInterface
Set the parent feature- Specified by:
setParentFeature
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
-
getParentFeature
public FeatureInterface<S,C> getParentFeature()
Description copied from interface:FeatureInterface
Get the parent feature- Specified by:
getParentFeature
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
- Returns:
-
getChildrenFeatures
public List<FeatureInterface<S,C>> getChildrenFeatures()
Description copied from interface:FeatureInterface
Get the features contained by this feature- Specified by:
getChildrenFeatures
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
- Returns:
-
setChildrenFeatures
public void setChildrenFeatures(List<FeatureInterface<S,C>> features)
Description copied from interface:FeatureInterface
Set the children features- Specified by:
setChildrenFeatures
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
-
getUserObject
public Object getUserObject()
- Specified by:
getUserObject
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
- Returns:
- the userObject
-
setUserObject
public void setUserObject(Object userObject)
- Specified by:
setUserObject
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
- Parameters:
userObject
- the userObject to set
-
getQualifiers
public Map<String,List<Qualifier>> getQualifiers()
Description copied from interface:FeatureInterface
Get the qualifiers for this feature- Specified by:
getQualifiers
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
- Returns:
-
setQualifiers
public void setQualifiers(Map<String,List<Qualifier>> qualifiers)
Description copied from interface:FeatureInterface
Set the qualifiers- Specified by:
setQualifiers
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
-
addQualifier
public void addQualifier(String key, Qualifier qualifier)
Description copied from interface:FeatureInterface
Add a qualifier- Specified by:
addQualifier
in interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
-
-