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 |
|---|
SimpleFeatureRealizer() |
SimpleFeatureRealizer(FeatureRealizer fallBack) |
| Modifier and Type | Method and Description |
|---|---|
void |
addImplementation(Class template,
Class impl)
Install a new mapping from a class of Feature.Template to
a class of Feature implementations.
|
Feature |
realizeFeature(Sequence seq,
FeatureHolder parent,
Feature.Template temp)
Install a feature on the specified sequence.
|
public SimpleFeatureRealizer()
public SimpleFeatureRealizer(FeatureRealizer fallBack)
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.BioExceptionpublic Feature realizeFeature(Sequence seq, FeatureHolder parent, Feature.Template temp) throws BioException
FeatureRealizerrealizeFeature in interface FeatureRealizerseq - 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 © 2020 BioJava. All rights reserved.