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 is
DBReferenceInfo
which implements FeatureInterface
. It allows to keep a dbReferenceInfo as a feature.- Author:
- Jacek Grzebyta, Paolo Pavan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addQualifier
(String key, Qualifier qualifier) Add a qualifierGet the features contained by this featureGet the description that can be used to describe the featureThe location(s) of this feature where the location should contain a reference to parent and sequence etc.Get the parent featureGet the qualifiers for this featureGet the short description that can be used to describe the featureThe source of the feature.getType()
The type of the feature.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
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
Change the source of the FeatureInterface.void
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 Details
-
FeatureDbReferenceInfo
-
-
Method Details
-
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
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
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
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
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
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
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
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
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
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
Description copied from interface:FeatureInterface
Set the parent feature- Specified by:
setParentFeature
in interfaceFeatureInterface<S extends AbstractSequence<C>,
C extends Compound>
-
getParentFeature
Description copied from interface:FeatureInterface
Get the parent feature- Specified by:
getParentFeature
in interfaceFeatureInterface<S extends AbstractSequence<C>,
C extends Compound> - Returns:
-
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
Description copied from interface:FeatureInterface
Set the children features- Specified by:
setChildrenFeatures
in interfaceFeatureInterface<S extends AbstractSequence<C>,
C extends Compound>
-
getUserObject
- Specified by:
getUserObject
in interfaceFeatureInterface<S extends AbstractSequence<C>,
C extends Compound> - Returns:
- the userObject
-
setUserObject
- Specified by:
setUserObject
in interfaceFeatureInterface<S extends AbstractSequence<C>,
C extends Compound> - Parameters:
userObject
- the userObject to set
-
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
Description copied from interface:FeatureInterface
Set the qualifiers- Specified by:
setQualifiers
in interfaceFeatureInterface<S extends AbstractSequence<C>,
C extends Compound>
-
addQualifier
Description copied from interface:FeatureInterface
Add a qualifier- Specified by:
addQualifier
in interfaceFeatureInterface<S extends AbstractSequence<C>,
C extends Compound>
-