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(String database, String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddQualifier(String key, Qualifier qualifier)Add a qualifierList<FeatureInterface<S,C>>getChildrenFeatures()Get the features contained by this featureStringgetDescription()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 featureMap<String,List<Qualifier>>getQualifiers()Get the qualifiers for this featureStringgetShortDescription()Get the short description that can be used to describe the featureStringgetSource()The source of the feature.StringgetType()The type of the feature.ObjectgetUserObject()voidsetChildrenFeatures(List<FeatureInterface<S,C>> features)Set the children featuresvoidsetDescription(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(Map<String,List<Qualifier>> qualifiers)Set the qualifiersvoidsetShortDescription(String shortDescription)Set the short description that can be used to describe the featurevoidsetSource(String source)Change the source of the FeatureInterface.voidsetType(String type)Change the type of this feature.voidsetUserObject(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: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(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 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(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 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(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 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(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 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(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 Object getUserObject()
- Specified by:
getUserObjectin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Returns:
- the userObject
-
setUserObject
public void setUserObject(Object userObject)
- Specified by:
setUserObjectin 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:FeatureInterfaceGet the qualifiers for this feature- Specified by:
getQualifiersin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>- Returns:
-
setQualifiers
public void setQualifiers(Map<String,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(String key, Qualifier qualifier)
Description copied from interface:FeatureInterfaceAdd a qualifier- Specified by:
addQualifierin interfaceFeatureInterface<S extends AbstractSequence<C>,C extends Compound>
-
-