S
- C
- public class FeatureDbReferenceInfo<S extends AbstractSequence<C>,C extends Compound> extends DBReferenceInfo implements FeatureInterface<S,C>
DBReferenceInfo
which implements FeatureInterface
. It allows to keep a dbReferenceInfo as a feature.Constructor and Description |
---|
FeatureDbReferenceInfo(String database,
String id) |
Modifier and Type | Method and Description |
---|---|
void |
addQualifier(String key,
Qualifier qualifier)
Add a qualifier
|
List<FeatureInterface<S,C>> |
getChildrenFeatures()
Get the features contained by this feature
|
String |
getDescription()
Get the description that can be used to describe the feature
|
AbstractLocation |
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 feature
|
Map<String,List<Qualifier>> |
getQualifiers()
Get the qualifiers for this feature
|
String |
getShortDescription()
Get the short description that can be used to describe the feature
|
String |
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 features
|
void |
setDescription(String description)
Set the description that can be used to describe the feature
|
void |
setLocation(AbstractLocation loc)
The new location for this feature.
|
void |
setParentFeature(FeatureInterface<S,C> feature)
Set the parent feature
|
void |
setQualifiers(Map<String,List<Qualifier>> qualifiers)
Set the qualifiers
|
void |
setShortDescription(String shortDescription)
Set the short description that can be used to describe the feature
|
void |
setSource(String source)
Change the source of the FeatureInterface.
|
void |
setType(String type)
Change the type of this feature.
|
void |
setUserObject(Object userObject) |
addProperty, getDatabase, getId, getProperties, setDatabase, setId, setProperties, toString
getName, getValue, needsQuotes, setName, setNeedsQuotes, setValue
public FeatureDbReferenceInfo(String database, String id)
public String getShortDescription()
FeatureInterface
getShortDescription
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public void setShortDescription(String shortDescription)
FeatureInterface
setShortDescription
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public String getDescription()
FeatureInterface
getDescription
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public void setDescription(String description)
FeatureInterface
setDescription
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public AbstractLocation getLocations()
FeatureInterface
The location may be complicated, or simply a range. The annotation is assumed to apply to all the region contained within the location.
getLocations
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public void setLocation(AbstractLocation loc)
FeatureInterface
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.
setLocation
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
loc
- the new Location for this featurepublic String getType()
FeatureInterface
getType
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public void setType(String type)
FeatureInterface
setType
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
type
- new type Stringpublic String getSource()
FeatureInterface
getSource
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public void setSource(String source)
FeatureInterface
setSource
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
source
- the new source Stringpublic void setParentFeature(FeatureInterface<S,C> feature)
FeatureInterface
setParentFeature
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public FeatureInterface<S,C> getParentFeature()
FeatureInterface
getParentFeature
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public List<FeatureInterface<S,C>> getChildrenFeatures()
FeatureInterface
getChildrenFeatures
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public void setChildrenFeatures(List<FeatureInterface<S,C>> features)
FeatureInterface
setChildrenFeatures
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public Object getUserObject()
getUserObject
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public void setUserObject(Object userObject)
setUserObject
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
userObject
- the userObject to setpublic Map<String,List<Qualifier>> getQualifiers()
FeatureInterface
getQualifiers
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public void setQualifiers(Map<String,List<Qualifier>> qualifiers)
FeatureInterface
setQualifiers
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
public void addQualifier(String key, Qualifier qualifier)
FeatureInterface
addQualifier
in interface FeatureInterface<S extends AbstractSequence<C>,C extends Compound>
Copyright © 2000–2019 BioJava. All rights reserved.