public class SimpleFeatureRealizer extends Object implements FeatureRealizer, Serializable
When searching for a Feature implementation to match a specific Feature.Template class, the following search order is used:
|Constructor and Description|
|Modifier and Type||Method and Description|
Install a new mapping from a class of Feature.Template to a class of Feature implementations.
Install a feature on the specified sequence.
public void addImplementation(Class template, Class impl) throws BioException
A newly added implementation takes precendence over any existing implementations if a template can be realized by more than one implementation.
template- The class of templates to implement.
impl- A class of Feature which can be used to implement these templates.
public Feature realizeFeature(Sequence seq, FeatureHolder parent, Feature.Template temp) throws BioException
seq- The sequence to which the feature will be added.
parent- The FeatureHolder which is to be the Feature's immediate parent.
temp- A description of the desired feature.
BioException- If the feature could not be constructed.
Copyright © 2014 BioJava. All rights reserved.