public static class Feature.Template extends Object implements Serializable, Cloneable
This just has fields for representing the properties of a basic Feature. Each sub-interface should provide a template class that inherits off this, and the constructor or factory methods should make a particular feature implementation from the template.
The equals(), hashcode(), toString() and populate() methods are defined such that two templates are equal if all their fields are equal. These are implemented by reflection, and automatically pick up any extra fields added in subclasses.
Modifier and Type | Field and Description |
---|---|
Annotation |
annotation |
Location |
location |
String |
source |
Term |
sourceTerm |
String |
type |
Term |
typeTerm |
Constructor and Description |
---|
Feature.Template() |
public Term sourceTerm
public Annotation annotation
public Feature.Template()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2014 BioJava. All rights reserved.