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 isDBReferenceInfowhich implementsFeatureInterface. It allows to keep a dbReferenceInfo as a feature.- Author:
- Jacek Grzebyta, Paolo Pavan
-
-
Constructor Summary
Constructors Constructor Description FeatureDbReferenceInfo(java.lang.String database, java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddQualifier(java.lang.String key, Qualifier qualifier)Add a qualifierjava.util.List<FeatureInterface<S,C>>getChildrenFeatures()Get the features contained by this featurejava.lang.StringgetDescription()Get the description that can be used to describe the featureAbstractLocationgetLocations()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 featurejava.util.Map<java.lang.String,java.util.List<Qualifier>>getQualifiers()Get the qualifiers for this featurejava.lang.StringgetShortDescription()Get the short description that can be used to describe the featurejava.lang.StringgetSource()The source of the feature.java.lang.StringgetType()The type of the feature.java.lang.ObjectgetUserObject()voidsetChildrenFeatures(java.util.List<FeatureInterface<S,C>> features)Set the children featuresvoidsetDescription(java.lang.String description)Set the description that can be used to describe the featurevoidsetLocation(AbstractLocation loc)The new location for this feature.voidsetParentFeature(FeatureInterface<S,C> feature)Set the parent featurevoidsetQualifiers(java.util.Map<java.lang.String,java.util.List<Qualifier>> qualifiers)Set the qualifiersvoidsetShortDescription(java.lang.String shortDescription)Set the short description that can be used to describe the featurevoidsetSource(java.lang.String source)Change the source of the FeatureInterface.voidsetType(java.lang.String type)Change the type of this feature.voidsetUserObject(java.lang.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
-
-
-
-
Method Detail
-
getShortDescription
public java.lang.String getShortDescription()
Description copied from interface:FeatureInterfaceGet the short description that can be used to describe the feature- Specified by:
getShortDescriptionin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Returns:
-
setShortDescription
public void setShortDescription(java.lang.String shortDescription)
Description copied from interface:FeatureInterfaceSet the short description that can be used to describe the feature- Specified by:
setShortDescriptionin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
-
getDescription
public java.lang.String getDescription()
Description copied from interface:FeatureInterfaceGet the description that can be used to describe the feature- Specified by:
getDescriptionin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Returns:
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:FeatureInterfaceSet the description that can be used to describe the feature- Specified by:
setDescriptionin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
-
getLocations
public AbstractLocation getLocations()
Description copied from interface:FeatureInterfaceThe 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:
getLocationsin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Returns:
- a Location anchoring this feature
-
setLocation
public void setLocation(AbstractLocation loc)
Description copied from interface:FeatureInterfaceThe 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:
setLocationin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Parameters:
loc- the new Location for this feature
-
getType
public java.lang.String getType()
Description copied from interface:FeatureInterfaceThe type of the feature.- Specified by:
getTypein interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Returns:
- the type of this sequence
-
setType
public void setType(java.lang.String type)
Description copied from interface:FeatureInterfaceChange the type of this feature.- Specified by:
setTypein interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Parameters:
type- new type String
-
getSource
public java.lang.String getSource()
Description copied from interface:FeatureInterfaceThe source of the feature. This may be a program or process.- Specified by:
getSourcein interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Returns:
- the source, or generator
-
setSource
public void setSource(java.lang.String source)
Description copied from interface:FeatureInterfaceChange the source of the FeatureInterface.- Specified by:
setSourcein 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:FeatureInterfaceSet the parent feature- Specified by:
setParentFeaturein interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
-
getParentFeature
public FeatureInterface<S,C> getParentFeature()
Description copied from interface:FeatureInterfaceGet the parent feature- Specified by:
getParentFeaturein interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Returns:
-
getChildrenFeatures
public java.util.List<FeatureInterface<S,C>> getChildrenFeatures()
Description copied from interface:FeatureInterfaceGet the features contained by this feature- Specified by:
getChildrenFeaturesin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Returns:
-
setChildrenFeatures
public void setChildrenFeatures(java.util.List<FeatureInterface<S,C>> features)
Description copied from interface:FeatureInterfaceSet the children features- Specified by:
setChildrenFeaturesin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
-
getUserObject
public java.lang.Object getUserObject()
- Specified by:
getUserObjectin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Returns:
- the userObject
-
setUserObject
public void setUserObject(java.lang.Object userObject)
- Specified by:
setUserObjectin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Parameters:
userObject- the userObject to set
-
getQualifiers
public java.util.Map<java.lang.String,java.util.List<Qualifier>> getQualifiers()
Description copied from interface:FeatureInterfaceGet the qualifiers for this feature- Specified by:
getQualifiersin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Returns:
-
setQualifiers
public void setQualifiers(java.util.Map<java.lang.String,java.util.List<Qualifier>> qualifiers)
Description copied from interface:FeatureInterfaceSet the qualifiers- Specified by:
setQualifiersin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
-
addQualifier
public void addQualifier(java.lang.String key, Qualifier qualifier)Description copied from interface:FeatureInterfaceAdd a qualifier- Specified by:
addQualifierin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
-
-